Permalink
Browse files

Bug 668566 - Don't query for bugs with an empty filename. r=mstange

  • Loading branch information...
ehsan committed Jul 2, 2011
1 parent f3433fd commit 4efb88f62ff02dc7b6f81f64c7d05581ecb66543
Showing with 5 additions and 0 deletions.
  1. +3 −0 php/getTinderboxSummary.php
  2. +2 −0 php/inc/AnnotatedSummaryGenerator.php
@@ -168,6 +168,9 @@ function parseJSON($json) {
$bugsCache = array();
function getBugsForTestFailure($fileName) {
+ if ($fileName == '') {
+ return array();
+ }
global $bugsCache;
if (isset($bugsCache[$fileName]))
return array();
@@ -77,6 +77,8 @@ protected function parseJSON($json) {
}
protected function getBugsForTestFailure($fileName) {
+ if ($fileName == '')
+ return array();
if (isset($this->bugsCache[$fileName]))
return array();
if ($fileName == 'automation.py') {

0 comments on commit 4efb88f

Please sign in to comment.