Bläddra i källkod

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

Update RNFetchBlobReq.java
ihavenoface5 4 år sedan
förälder
incheckning
6923bbb05c
No account linked to committer's email address
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+ 3
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java Visa fil

@@ -591,8 +591,10 @@ public class RNFetchBlobReq extends BroadcastReceiver implements Runnable {
591 591
 //                    ignored.printStackTrace();
592 592
                 }
593 593
 
594
+                RNFetchBlobFileResp rnFetchBlobFileResp;
595
+                
594 596
                 try {
595
-                    RNFetchBlobFileResp rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
597
+                    rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
596 598
                 } catch (ClassCastException ex) {
597 599
                     // unexpected response type
598 600
                     if (responseBody != null) {