Bug 790535 - Fix a NullPointerException from accessing a not-fully-initialized LayerView. r=cpeterson

This commit is contained in:
Kartikaya Gupta 2012-09-13 00:49:10 -04:00
parent 988aa86624
commit 81b38233e5

View File

@ -1550,8 +1550,9 @@ abstract public class GeckoApp
}
if (mLayerView == null) {
mLayerView = (LayerView) findViewById(R.id.layer_view);
mLayerView.createLayerClient(GeckoAppShell.getEventDispatcher());
LayerView layerView = (LayerView) findViewById(R.id.layer_view);
layerView.createLayerClient(GeckoAppShell.getEventDispatcher());
mLayerView = layerView;
}
mPluginContainer = (AbsoluteLayout) findViewById(R.id.plugin_container);