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
Родитель ee7e8affe6
Коммит f7e298b8c5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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();