[patch]: stop spinner in case of error or exception

This commit is contained in:
Nadya Zabrodina
2016-04-29 15:09:11 +03:00
parent 204afe9ca2
commit a16ff35529
@@ -358,9 +358,7 @@ public class ApplyPatchDifferentiatedDialog extends DialogWrapper {
}
final PatchReader patchReader = loadPatches(file);
if (patchReader == null) return;
List<FilePatch> filePatches = ContainerUtil.newArrayList(patchReader.getPatches());
List<FilePatch> filePatches = patchReader != null ? ContainerUtil.newArrayList(patchReader.getPatches()) : Collections.emptyList();
if (!ContainerUtil.isEmpty(myBinaryShelvedPatches)) {
filePatches.addAll(myBinaryShelvedPatches);
}