Fixing app crash when clicking Menu or Back buttons while splashscreen is being shown.

This commit is contained in:
macdonst 2012-02-23 12:36:38 -05:00
parent e85394dd99
commit 5722d976ce

View File

@ -908,7 +908,9 @@ public class DroidGap extends Activity implements CordovaInterface {
this.appView.loadUrl("about:blank");
// Forward to plugins
this.pluginManager.onDestroy();
if (this.pluginManager != null) {
this.pluginManager.onDestroy();
}
}
else {
this.endActivity();
@ -924,7 +926,9 @@ public class DroidGap extends Activity implements CordovaInterface {
public void postMessage(String id, Object data) {
// Forward to plugins
this.pluginManager.postMessage(id, data);
if (this.pluginManager != null) {
this.pluginManager.postMessage(id, data);
}
}
/**