EA-88507 - IAE: CollapseTagIntention.a

This commit is contained in:
Dmitry Avdeev
2016-11-10 18:05:13 +03:00
parent d1fdf69d47
commit 93e379a413
@@ -73,7 +73,10 @@ public class CollapseTagIntention implements LocalQuickFix, IntentionAction {
@Override
public void invoke(@NotNull Project project, Editor editor, PsiFile file) throws IncorrectOperationException {
applyFix(project, getTag(editor, file));
XmlTag tag = getTag(editor, file);
if (tag != null) {
applyFix(project, tag);
}
}
private static XmlTag getTag(Editor editor, PsiFile file) {