diff --git a/android/src/com/mapswithme/maps/settings/StoragePathManager.java b/android/src/com/mapswithme/maps/settings/StoragePathManager.java index 7082e2ab14..f689b90c7b 100644 --- a/android/src/com/mapswithme/maps/settings/StoragePathManager.java +++ b/android/src/com/mapswithme/maps/settings/StoragePathManager.java @@ -531,8 +531,10 @@ public class StoragePathManager outputChannel.transferFrom(inputChannel, 0, inputChannel.size()); } finally { - inputChannel.close(); - outputChannel.close(); + if (inputChannel != null) + inputChannel.close(); + if (outputChannel != null) + outputChannel.close(); } }