From 0786e831ca67775e8c6b82a2b919d6a0a99da3d9 Mon Sep 17 00:00:00 2001 From: Rustam Vishnyakov Date: Mon, 19 Nov 2012 19:52:57 +0400 Subject: [PATCH] EA-39857 Fix (empty tag passed to inspection) - [reviewed by E.Kudelevsky] --- .../htmlInspections/HtmlUnknownTagInspection.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xml/impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownTagInspection.java b/xml/impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownTagInspection.java index a0f95c766239..08ab3339463f 100644 --- a/xml/impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownTagInspection.java +++ b/xml/impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownTagInspection.java @@ -252,7 +252,9 @@ public class HtmlUnknownTagInspection extends HtmlLocalInspectionTool { ProblemHighlightType highlightType = tag.getContainingFile().getContext() == null ? ProblemHighlightType.GENERIC_ERROR_OR_WARNING : ProblemHighlightType.INFORMATION; - holder.registerProblem(startTagName, message, highlightType, quickfixes.toArray(new LocalQuickFix[quickfixes.size()])); + if (startTagName.getTextLength() > 0) { + holder.registerProblem(startTagName, message, highlightType, quickfixes.toArray(new LocalQuickFix[quickfixes.size()])); + } if (endTagName != null) { holder.registerProblem(endTagName, message, highlightType, quickfixes.toArray(new LocalQuickFix[quickfixes.size()]));