Skip to content

Commit

Permalink
Merge pull request #215 from jonthanon/master
Browse files Browse the repository at this point in the history
Null check HashMap's get result in ReactNativeBlobUtilReq instead of checking for key first, to prevent potential async issues
  • Loading branch information
RonRadtke authored Feb 24, 2023
2 parents aaec2c7 + 172e4a8 commit 8be38f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ else if (arrayBody != null)
}

public static void cancelTask(String taskId) {
if (taskTable.containsKey(taskId)) {
Call call = taskTable.get(taskId);
Call call = taskTable.get(taskId);
if (call != null) {
call.cancel();
taskTable.remove(taskId);
}
Expand Down

0 comments on commit 8be38f8

Please sign in to comment.