Bug 839359 - Crash -- java.lang.NullPointerException, r=kats

This commit is contained in:
Mark Capella 2013-02-08 10:22:35 -05:00
parent ed46464631
commit 1036e41c96

View File

@ -523,7 +523,7 @@ abstract public class GeckoApp
@Override
public boolean onMenuOpened(int featureId, Menu menu) {
// exit full-screen mode whenever the menu is opened
if (mLayerView.isFullScreen()) {
if (mLayerView != null && mLayerView.isFullScreen()) {
GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("FullScreen:Exit", null));
}