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

This commit is contained in:
Mark Capella 2013-02-08 10:22:35 -05:00
parent cd225d6279
commit d7645cf0cd

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));
}