Skip to content

Commit

Permalink
fix(devtools): fix try catch exception when update context
Browse files Browse the repository at this point in the history
  • Loading branch information
lavnFan authored and zoomchan-cxj committed Feb 6, 2023
1 parent 5b09816 commit 336eb3f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,14 @@ public void setNeedBatchUpdateDom(boolean needBatchUpdate) {
}

public void updateContextName(String name) {
if (getContext() == null) {
return;
}
try {
JSONObject contextObj = new JSONObject();
contextObj.put("contextName", name);

Context context = mContextRef.get().getGlobalConfigs().getContext();
Context context = getContext().getGlobalConfigs().getContext();
String packageName = "";
String versionName = "";
if (context != null) {
Expand Down

0 comments on commit 336eb3f

Please sign in to comment.