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 c4ff439 commit 16237a7Copy full SHA for 16237a7
library/src/main/java/com/qiniu/android/collect/UploadInfoCollector.java
@@ -302,11 +302,13 @@ private byte[] getLogData(File recordFile){
302
} catch (FileNotFoundException ignored) {
303
} catch (IOException e) {
304
data = null;
305
- }
306
- if (randomAccessFile != null){
307
- try {
308
- randomAccessFile.close();
309
- } catch (IOException e){}
+ } finally {
+ if (randomAccessFile != null) {
+ try {
+ randomAccessFile.close();
+ } catch (IOException e) {
310
+ }
311
312
}
313
return data;
314
0 commit comments