Bug 813801: null-check blocklistWindow in nsBlocklistService.js. r=dtownsend

This commit is contained in:
Chen Zeyu 2012-12-05 14:13:26 -08:00
parent d7fa9b9da5
commit cb3e0b1f2b

View File

@ -1038,7 +1038,8 @@ Blocklist.prototype = {
let blocklistWindow = Services.ww.openWindow(null, URI_BLOCKLIST_DIALOG, "",
"chrome,centerscreen,dialog,titlebar", args);
blocklistWindow.addEventListener("unload", blocklistUnloadHandler, false);
if (blocklistWindow)
blocklistWindow.addEventListener("unload", blocklistUnloadHandler, false);
});
},