mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-39857 Fix (empty tag passed to inspection) - [reviewed by E.Kudelevsky]
This commit is contained in:
+3
-1
@@ -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()]));
|
||||
|
||||
Reference in New Issue
Block a user