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.
2 parents aaec2c7 + 172e4a8 commit 8be38f8Copy full SHA for 8be38f8
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