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 09ae8f5 commit 9a168bfCopy full SHA for 9a168bf
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
@@ -598,7 +598,11 @@ private void done(Response resp) {
598
} catch (ClassCastException ex) {
599
// unexpected response type
600
if (responseBody != null) {
601
- callback.invoke("Unexpected FileStorage response file: " + responseBody.string(), null);
+ try {
602
+ callback.invoke("Unexpected FileStorage response file: " + responseBody.string(), null);
603
+ } catch (IOException e) {
604
+ e.printStackTrace();
605
+ }
606
} else {
607
callback.invoke("Unexpected FileStorage response with no file.", null);
608
}
0 commit comments