mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
correct the assertion
This commit is contained in:
+4
-1
@@ -137,7 +137,10 @@ public class DomElementProblemDescriptorImpl implements DomElementProblemDescrip
|
||||
if (myPair == null) {
|
||||
myPair = computeProblemRange();
|
||||
}
|
||||
assert myPair.second.isValid();
|
||||
PsiElement element = myPair.second;
|
||||
if (element != null) {
|
||||
assert element.isValid();
|
||||
}
|
||||
return myPair;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user