diff --git a/webtools/mozbot/BotModules/Bugzilla.bm b/webtools/mozbot/BotModules/Bugzilla.bm index cff199313abe..646679037c71 100644 --- a/webtools/mozbot/BotModules/Bugzilla.bm +++ b/webtools/mozbot/BotModules/Bugzilla.bm @@ -411,8 +411,10 @@ sub GotURI { foreach my $field (keys %fieldMap) { my @arr = $xml_bug->getElementsByTagName($field); if (@arr) { - my $str = $arr[0]->getFirstChild->getData(); - $bug{$fieldMap{$field}} = $str; + my $firstChild = $arr[0]->getFirstChild(); + if (defined $firstChild) { + $bug{$fieldMap{$field}} = $firstChild->getData(); + } } } }