1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 12:51:16 +00:00

Fix NPE when closing filehandle to export configuration

This commit is contained in:
Lode Hoste 2015-03-24 18:40:09 +01:00
parent 24ba984ec5
commit 918c6c4e92

View file

@ -495,7 +495,9 @@ public class SyncthingService extends Service {
Log.w(TAG, "Failed to copy file", e); Log.w(TAG, "Failed to copy file", e);
} finally { } finally {
try { try {
if (is != null)
is.close(); is.close();
if (os != null)
os.close(); os.close();
} catch (IOException e) { } catch (IOException e) {
Log.w(TAG, "Failed to close stream", e); Log.w(TAG, "Failed to close stream", e);