From 6574d125c7ddc982cad2f83a4fa590840aba4764 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 19 Jul 2013 14:43:04 +0200 Subject: [PATCH] Get rid of a warning in the HipChat plugin --- src/lib/Hydra/Plugin/HipChatNotification.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/HipChatNotification.pm b/src/lib/Hydra/Plugin/HipChatNotification.pm index 08049f01..5ca61378 100644 --- a/src/lib/Hydra/Plugin/HipChatNotification.pm +++ b/src/lib/Hydra/Plugin/HipChatNotification.pm @@ -9,7 +9,7 @@ sub buildFinished { my ($self, $build, $dependents) = @_; my $cfg = $self->{config}->{hipchat}; - my @config = ref $cfg eq "ARRAY" ? @$cfg : ($cfg); + my @config = defined $cfg ? ref $cfg eq "ARRAY" ? @$cfg : ($cfg) : (); my $baseurl = $self->{config}->{'base_uri'} || "http://localhost:3000";