Bug 1138529 - Add null checks mDoorHangerPopup access in toolbar editing state. r=liuche

Note: the call in onStartEditing is intended to fix the bug, but the call in
onStopEditing is similar enough that it makes sense to guard it as well.

--HG--
extra : rebase_source : 44dbeebd1ea6ed31f8437decb52c75457f27eb7c
This commit is contained in:
Michael Comella 2015-03-05 13:34:54 -08:00
Родитель a8bef79d9a
Коммит 513b4079b3
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1027,7 +1027,9 @@ public class BrowserApp extends GeckoApp
}
// Temporarily disable doorhanger notifications.
mDoorHangerPopup.disable();
if (mDoorHangerPopup != null) {
mDoorHangerPopup.disable();
}
}
});
@ -1050,7 +1052,9 @@ public class BrowserApp extends GeckoApp
hideHomePager();
// Re-enable doorhanger notifications. They may trigger on the selected tab above.
mDoorHangerPopup.enable();
if (mDoorHangerPopup != null) {
mDoorHangerPopup.enable();
}
}
});