Browse Source

Merge pull request #531 from joltup/ihavenoface5-patch-1

Update RNFetchBlobReq.java
ihavenoface5 4 years ago
parent
commit
6923bbb05c
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+ 3
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java View File

591
 //                    ignored.printStackTrace();
591
 //                    ignored.printStackTrace();
592
                 }
592
                 }
593
 
593
 
594
+                RNFetchBlobFileResp rnFetchBlobFileResp;
595
+                
594
                 try {
596
                 try {
595
-                    RNFetchBlobFileResp rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
597
+                    rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
596
                 } catch (ClassCastException ex) {
598
                 } catch (ClassCastException ex) {
597
                     // unexpected response type
599
                     // unexpected response type
598
                     if (responseBody != null) {
600
                     if (responseBody != null) {