You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/01/05 22:33:25 UTC
[2/3] android commit: CB-8210 Drop events from native that occur
before start-up
CB-8210 Drop events from native that occur before start-up
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/c1ac3aa4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/c1ac3aa4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/c1ac3aa4
Branch: refs/heads/master
Commit: c1ac3aa483e0640d35a850f7294f88a38e08fab1
Parents: 291f111
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Jan 5 16:32:39 2015 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Jan 5 16:32:39 2015 -0500
----------------------------------------------------------------------
framework/src/org/apache/cordova/App.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/c1ac3aa4/framework/src/org/apache/cordova/App.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/App.java b/framework/src/org/apache/cordova/App.java
index 6affb3d..8a11fbd 100755
--- a/framework/src/org/apache/cordova/App.java
+++ b/framework/src/org/apache/cordova/App.java
@@ -315,7 +315,9 @@ public class App extends CordovaPlugin {
}
PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, obj);
pluginResult.setKeepCallback(true);
- messageChannel.sendPluginResult(pluginResult);
+ if (messageChannel != null) {
+ messageChannel.sendPluginResult(pluginResult);
+ }
}
/*
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org