diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index b373175f..1e484483 100644 --- a/src/lib/Hydra/Plugin/EmailNotification.pm +++ b/src/lib/Hydra/Plugin/EmailNotification.pm @@ -66,7 +66,7 @@ sub buildFinished { my $to = $b->jobset->emailoverride ne "" ? $b->jobset->emailoverride : $b->maintainers; - foreach my $address (split ",", $to) { + foreach my $address (split ",", ($to // "")) { $address = trim $address; $addresses{$address} //= { builds => [] };