Bug 1081537 - Followup bustage fix. r=me

This commit is contained in:
Bobby Holley 2014-10-17 19:08:45 +02:00
parent 13d7de6673
commit e6725f78a1

View File

@ -137,7 +137,7 @@ GetEntryDocument()
// If our entry global isn't a window, see if it's an addon scope associated
// with a window. If it is, the caller almost certainly wants that rather
// than null.
if (!entryWin) {
if (!entryWin && global) {
entryWin = xpc::AddonWindowOrNull(global->GetGlobalJSObject());
}