From 788c2bebaa359d4257768c81997c3b438b095117 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 3 Sep 2013 14:43:08 -0400 Subject: [PATCH] Not every buildstep has a defined drvpath Signed-off-by: Shea Levy --- src/lib/Hydra/Helper/Nix.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index f9dc69e6..93dc3bf7 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -284,6 +284,7 @@ sub findLog { }); foreach my $step (@steps) { + next unless defined $step->drvpath; my $logPath = getDrvLogPath($step->drvpath); return $logPath if defined $logPath; }