mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 790535 - Fix a NullPointerException from accessing a not-fully-initialized LayerView. r=cpeterson
This commit is contained in:
parent
988aa86624
commit
81b38233e5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user