mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-27 06:41:15 +00:00
Fix NPE when closing filehandle to export configuration
This commit is contained in:
parent
24ba984ec5
commit
918c6c4e92
1 changed files with 4 additions and 2 deletions
|
@ -495,8 +495,10 @@ public class SyncthingService extends Service {
|
|||
Log.w(TAG, "Failed to copy file", e);
|
||||
} finally {
|
||||
try {
|
||||
is.close();
|
||||
os.close();
|
||||
if (is != null)
|
||||
is.close();
|
||||
if (os != null)
|
||||
os.close();
|
||||
} catch (IOException e) {
|
||||
Log.w(TAG, "Failed to close stream", e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue