Kaynağa Gözat

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

Update RNFetchBlobReq.java
ihavenoface5 4 yıl önce
ebeveyn
işleme
6923bbb05c
No account linked to committer's email address

+ 3
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java Dosyayı Görüntüle

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