Procházet zdrojové kódy

Update RNFetchBlobReq.java

fixed scoping problem
ihavenoface5 před 4 roky
rodič
revize
3f75d5e9c6
No account linked to committer's email address

+ 3
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java Zobrazit soubor

@@ -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) {