mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't create dom highlights for non-physical PSI (EA-107260 - assert: Non physical IncludedXmlTag)
This commit is contained in:
+2
-3
@@ -89,11 +89,10 @@ public class DomElementsHighlightingUtil {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static <T> T createProblemDescriptors(final DomElementProblemDescriptor problemDescriptor,
|
||||
final Function<Pair<TextRange, PsiElement>, T> creator) {
|
||||
private static <T> T createProblemDescriptors(DomElementProblemDescriptor problemDescriptor, Function<Pair<TextRange, PsiElement>, T> creator) {
|
||||
|
||||
final Pair<TextRange, PsiElement> range = ((DomElementProblemDescriptorImpl)problemDescriptor).getProblemRange();
|
||||
return range == DomElementProblemDescriptorImpl.NO_PROBLEM ? null : creator.fun(range);
|
||||
return range == DomElementProblemDescriptorImpl.NO_PROBLEM || !range.second.isPhysical() ? null : creator.fun(range);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user