diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 498d2a62..2adfb4b9 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -595,7 +595,7 @@ sub fetchInput { die "Input `" . $name . "' has unknown type `$type'."; } - $input->{type} = $type; + $input->{type} = $type if defined $input; return $input; }