BuildDiff: ensure buildstatus is defined

buildstatus won't be defined if e.g. a build is queued but none have
failed.
This commit is contained in:
Cole Helbling 2022-01-10 11:13:47 -08:00
parent 92bd0fae7d
commit 9b12a88d81

View file

@ -71,7 +71,7 @@ sub buildDiff {
} else { } else {
push @{$ret->{new}}, $build if !$found; push @{$ret->{new}}, $build if !$found;
} }
if ($build->buildstatus != 0) { if (defined $build->buildstatus && $build->buildstatus != 0) {
push @{$ret->{failed}}, $build; push @{$ret->{failed}}, $build;
} }
} }