Bug 575477 - Error in nsIAutoCompletePopup::invalidate [r=vingtetun]
authorMark Finkle <mfinkle@mozilla.com>
Tue, 29 Jun 2010 09:24:56 -0400
changeset 66326 1360a14130ae835d3ba992f7974d1b4a85fd793f
parent 66325 3ff050b9b189012add52e351a2bc61ad662e94fe
child 66327 832942d1b0ba41bd34e90bb867842d88f08fd796
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs575477
Bug 575477 - Error in nsIAutoCompletePopup::invalidate [r=vingtetun]
mobile/chrome/content/bindings.xml
--- a/mobile/chrome/content/bindings.xml
+++ b/mobile/chrome/content/bindings.xml
@@ -250,17 +250,17 @@
             }
             item._empty = false;
 
             // Assign the values
             let type = controller.getStyleAt(i);
             let title = controller.getCommentAt(i);
             let tags = '';
 
-            if (type == "tag")
+            if (title && type == "tag")
               [, title, tags] = title.match(/^(.+) \u2013 (.+)$/);
             item.setAttribute("tags", tags);
 
             let url = controller.getValueAt(i);
             item.setAttribute("value", title || url);
             item.setAttribute("url", url);
 
             let isBookmark = ((type == "bookmark") || (type == "tag"));