incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bcur...@apache.org
Subject [1/2] android commit: Fix exception when defaultValue=null.
Date Mon, 11 Jun 2012 19:58:42 GMT
Updated Branches:
  refs/heads/master 9ebdca66d -> 5649fbac2


Fix exception when defaultValue=null.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/5649fbac
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/5649fbac
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/5649fbac

Branch: refs/heads/master
Commit: 5649fbac20806aae4e4030f62f25a4b0e25e9cf2
Parents: 586d3ec
Author: Bryce Curtis <curtis.bryce@gmail.com>
Authored: Mon Jun 11 14:55:08 2012 -0500
Committer: Bryce Curtis <curtis.bryce@gmail.com>
Committed: Mon Jun 11 14:55:08 2012 -0500

----------------------------------------------------------------------
 .../org/apache/cordova/CordovaChromeClient.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/5649fbac/framework/src/org/apache/cordova/CordovaChromeClient.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaChromeClient.java b/framework/src/org/apache/cordova/CordovaChromeClient.java
index 04cda62..a23aac4 100755
--- a/framework/src/org/apache/cordova/CordovaChromeClient.java
+++ b/framework/src/org/apache/cordova/CordovaChromeClient.java
@@ -218,7 +218,7 @@ public class CordovaChromeClient extends WebChromeClient {
         }
 
         // Do NO-OP so older code doesn't display dialog
-        else if (defaultValue.equals("gap_init:")) {
+        else if (defaultValue != null && defaultValue.equals("gap_init:")) {
             result.confirm("OK");
         }
 


Mime
View raw message