diff --git a/framework/src/org/apache/cordova/ExposedJsApi.java b/framework/src/org/apache/cordova/ExposedJsApi.java index 40ab1e31..221dd3d5 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); }