rem: if (!gExtensionsView.selectedItem) 
add: if (!gExtensionsView.selectedItem) { 
context: function onAddonSelect(aEvent){  var viewButton = document.getElementById("viewGroup").selectedItem;  if (viewButton.hasAttribute("persist") && gExtensionsView.selectedItem)    viewButton.setAttribute("last-selected", gExtensionsView.selectedItem.id);  if (!document.getElementById("themePreviewArea").hidden) {    var previewImageDeck = document.getElementById("previewImageDeck");    if (gView == "themes") {      var previewImage = document.getElementById("previewImage");      if (!gExtensionsView.selectedItem) {        previewImageDeck.selectedIndex = 0;        if (previewImage.hasAttribute("src"))          previewImage.removeAttribute("src");      }      else {        var url = gExtensionsView.selectedItem.getAttribute("previewImage");        if (url) {          previewImageDeck.selectedIndex = 2;          previewImage.setAttribute("src", url);        }        else {          previewImageDeck.selectedIndex = 1;          if (previewImage.hasAttribute("src"))            previewImage.removeAttribute("src");        }      }    }    else if (gView == "updates") {      UpdateInfoLoader.cancelLoad();      if (!gExtensionsView.selectedItem)        previewImageDeck.selectedIndex = 3;      else if (!gExtensionsView.selectedItem.hasAttribute("availableUpdateInfo"))        previewImageDeck.selectedIndex = 4;      else        UpdateInfoLoader.loadInfo(gExtensionsView.selectedItem.getAttribute("availableUpdateInfo"));    }  }}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/ca039b69a2278ab45f7a68008272275b739bfae0/extensions.js/clean/toolkit/mozapps/extensions/content/extensions.js