Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[WEEX-562][Android] task may be null ,should be check ,not try/catch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-chen authored and YorkShen committed Aug 13, 2018
1 parent 8320979 commit 9eb436a
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1744,14 +1744,15 @@ private void invokeCallJSBatch(Message message) {
break;
}
}
task = ((ArrayList) task).toArray();
if (null != task){
task = ((ArrayList) task).toArray();

WXJSObject[] args = {
new WXJSObject(WXJSObject.String, instanceId),
WXWsonJSONSwitch.toWsonOrJsonWXJSObject(task)};

invokeExecJS(String.valueOf(instanceId), null, METHOD_CALL_JS, args);
WXJSObject[] args = {
new WXJSObject(WXJSObject.String, instanceId),
WXWsonJSONSwitch.toWsonOrJsonWXJSObject(task)};

invokeExecJS(String.valueOf(instanceId), null, METHOD_CALL_JS, args);
}
} catch (Throwable e) {
WXLogUtils.e("WXBridgeManager", e);
String err = "invokeCallJSBatch#" + WXLogUtils.getStackTrace(e);
Expand Down

0 comments on commit 9eb436a

Please sign in to comment.