mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fixed for applyPatch and unshelve
This commit is contained in:
+3
-1
@@ -339,7 +339,9 @@ public class ApplyPatchDifferentiatedDialog extends DialogWrapper {
|
||||
if (patchReader == null) return;
|
||||
|
||||
List<FilePatch> filePatches = ContainerUtil.<FilePatch>newArrayList(patchReader.getPatches());
|
||||
filePatches.addAll(myBinaryShelvedPatches);
|
||||
if (!ContainerUtil.isEmpty(myBinaryShelvedPatches)) {
|
||||
filePatches.addAll(myBinaryShelvedPatches);
|
||||
}
|
||||
final List<AbstractFilePatchInProgress> matchedPatches = new MatchPatchPaths(myProject).execute(filePatches);
|
||||
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user