cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [42/50] [abbrv] android commit: Explicitly print exceptions that occur within ExposedJsApi.
Date Fri, 28 Jun 2013 16:01:02 GMT
Explicitly print exceptions that occur within ExposedJsApi.

Before they trickled into JNI and the stack traces were lost.


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

Branch: refs/heads/2.9.x
Commit: 10d31ea0a30ec47d68c79813d56e7506b1542f7e
Parents: e64ebdf
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed Jun 26 14:20:45 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Jun 26 14:20:45 2013 -0400

----------------------------------------------------------------------
 framework/src/org/apache/cordova/ExposedJsApi.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/10d31ea0/framework/src/org/apache/cordova/ExposedJsApi.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/ExposedJsApi.java b/framework/src/org/apache/cordova/ExposedJsApi.java
index 40ab1e3..221dd3d 100755
--- a/framework/src/org/apache/cordova/ExposedJsApi.java
+++ b/framework/src/org/apache/cordova/ExposedJsApi.java
@@ -54,6 +54,9 @@ import org.json.JSONException;
                 ret = jsMessageQueue.popAndEncode();
             }
             return ret;
+        } catch (Throwable e) {
+            e.printStackTrace();
+            return "";
         } finally {
             jsMessageQueue.setPaused(false);
         }


Mime
View raw message