Fix NPE on first startup, if there is no screenshot lying around from a previous run

This commit is contained in:
Doug Turner 2011-11-07 14:17:00 -08:00
parent dcce78fffb
commit fdcba035a3

View File

@ -1119,6 +1119,8 @@ abstract public class GeckoApp
if (placeholderClient != null) {
mLayerController = new LayerController(this, placeholderClient);
placeholderClient.init();
} else {
mLayerController = new LayerController(this, null);
}
mGeckoLayout.addView(mLayerController.getView());