Bug 562765: Searching for add-ons doesn't show results when there is no description set for an add-on. r=bmcbride

This commit is contained in:
Robert Strong 2010-05-06 11:21:55 -07:00
parent ee7e8affe6
commit f7e298b8c5

View File

@ -799,7 +799,7 @@ var gSearchView = {
calculateMatchScore: function(aStr, aQuery, aMultiplier) {
var score = 0;
if (aQuery.length == 0)
if (!aStr || aQuery.length == 0)
return score;
aStr = aStr.trim().toLocaleLowerCase();