瀏覽代碼

Update RNFetchBlobReq.java

fixed scoping problem
ihavenoface5 4 年之前
父節點
當前提交
3f75d5e9c6
No account linked to committer's email address
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+ 3
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java 查看文件

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