mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
[patch]: stop spinner in case of error or exception
This commit is contained in:
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user