Handle the case where there are no builds and no previous eval

This commit is contained in:
Eelco Dolstra 2012-04-17 12:32:44 +02:00
parent db09760e8c
commit 8f31935ffa

View file

@ -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;
}
});