mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
ee7e8affe6
commit
f7e298b8c5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user