From 8f31935ffaa9fddddbd0250756eaa6b6c981fcba Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Apr 2012 12:32:44 +0200 Subject: [PATCH] Handle the case where there are no builds and no previous eval --- src/script/hydra-evaluator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/hydra-evaluator b/src/script/hydra-evaluator index 7e3fac60..1fc0d260 100755 --- a/src/script/hydra-evaluator +++ b/src/script/hydra-evaluator @@ -194,7 +194,7 @@ sub checkJobset { $ev->builds->update({iscurrent => 1}); } else { print STDERR " created cached eval ", $ev->id, "\n"; - $prevEval->builds->update({iscurrent => 1}); + $prevEval->builds->update({iscurrent => 1}) if defined $prevEval; } });