We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e14e6b commit 172e4a8Copy full SHA for 172e4a8
android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilReq.java
@@ -155,8 +155,8 @@ else if (arrayBody != null)
155
}
156
157
public static void cancelTask(String taskId) {
158
- if (taskTable.containsKey(taskId)) {
159
- Call call = taskTable.get(taskId);
+ Call call = taskTable.get(taskId);
+ if (call != null) {
160
call.cancel();
161
taskTable.remove(taskId);
162
0 commit comments