cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/3] android commit: CB-8210 Drop events from native that occur before start-up
Date Mon, 05 Jan 2015 21:33:24 GMT
Repository: cordova-android
Updated Branches:
  refs/heads/4.0.x 311bdbd36 -> 9698a995f
  refs/heads/master 291f11191 -> c1ac3aa48


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/4.0.x
Commit: c1ac3aa483e0640d35a850f7294f88a38e08fab1
Parents: 291f111
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Mon Jan 5 16:32:39 2015 -0500
Committer: Andrew Grieve <agrieve@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


Mime
View raw message