From 50718cea31ed68d569ae65ef2fd7febcf88df6b3 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 14 Mar 2012 09:10:45 +0400 Subject: [PATCH] EA-34179 - NPE: CollectionFactory.arrayList --- .../intellij/openapi/vcs/changes/actions/RollbackAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/RollbackAction.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/RollbackAction.java index 512a95e891bf..8754e23517fe 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/RollbackAction.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/RollbackAction.java @@ -166,7 +166,7 @@ public class RollbackAction extends AnAction implements DumbAware { @Nullable private static List getChanges(final Project project, final AnActionEvent e) { final ChangesCheckHelper helper = new ChangesCheckHelper(project, e); - if (helper.isChangesSet()) return CollectionFactory.arrayList(helper.getChanges()); + if (helper.isChangesSet() && helper.getChanges() != null) return CollectionFactory.arrayList(helper.getChanges()); final VirtualFile[] virtualFiles = e.getData(PlatformDataKeys.VIRTUAL_FILE_ARRAY); if (virtualFiles != null && virtualFiles.length > 0) {