We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf2328f commit 6bff324Copy full SHA for 6bff324
library/src/main/java/com/qiniu/android/collect/UploadInfoReporter.java
@@ -207,12 +207,14 @@ private byte[] getLogData(){
207
} catch (FileNotFoundException ignored) {
208
} catch (IOException e) {
209
data = null;
210
+ } finally {
211
+ if (randomAccessFile != null){
212
+ try {
213
+ randomAccessFile.close();
214
+ } catch (IOException e){}
215
+ }
216
}
- if (randomAccessFile != null){
- try {
- randomAccessFile.close();
- } catch (IOException e){}
- }
217
+
218
return data;
219
220
0 commit comments