mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[file-history] do not try to show diff when changes array is empty
EA-140308
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ public class CompareRevisionsFromFileHistoryActionProvider implements AnActionEx
|
||||
|
||||
Project project = e.getRequiredData(CommonDataKeys.PROJECT);
|
||||
Change[] changes = e.getData(VcsDataKeys.SELECTED_CHANGES);
|
||||
if (changes == null || changes.length > 1 || changes[0] == null) return;
|
||||
if (changes == null || changes.length != 1 || changes[0] == null) return;
|
||||
|
||||
ShowDiffAction.showDiffForChange(project, Arrays.asList(changes));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user