Bug 516283: Update buttons in addons panel throw an error if there are no addons previously installed [r=mark.finkle]
authorVivien Nicolas <21@vingtetun.org>
Mon, 14 Sep 2009 00:50:51 -0400
changeset 65553 33576779d3035236170046f15cba07e7a97950c2
parent 65552 e2b70a0763d1d1682ffa3a5fcc667a87853ddd0d
child 65554 d2dbdbb896519519f439846b51c0b476e5b481d4
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)
reviewersmark
bugs516283
Bug 516283: Update buttons in addons panel throw an error if there are no addons previously installed [r=mark.finkle]
mobile/chrome/content/extensions.js
--- a/mobile/chrome/content/extensions.js
+++ b/mobile/chrome/content/extensions.js
@@ -519,17 +519,17 @@ var ExtensionsView = {
       return;
   
     // To support custom views we check the add-ons displayed in the list
     let items = [];
     let start = this._localItem.nextSibling;
     let end = this._repoItem;
 
     while (start != end) {
-      if (start.getAttribute("updateable") != "false")
+      if (start.hasAttribute("updateable") && start.getAttribute("updateable") != "false")
         items.push(this._extmgr.getItemForID(start.getAttribute("addonID")));
       start = start.nextSibling;
     }
   
     if (items.length > 0) {
       let listener = new UpdateCheckListener();
       this._extmgr.update(items, items.length, Ci.nsIExtensionManager.UPDATE_CHECK_NEWVERSION, listener);
     }