mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
special PIEAE handling for NULL_PSI_ELEMENT (its getUserData throws exceptions)
This commit is contained in:
@@ -62,6 +62,9 @@ public class PsiInvalidElementAccessException extends RuntimeException implement
|
||||
if (element == null) {
|
||||
myMessage = message;
|
||||
myDiagnostic = Attachment.EMPTY_ARRAY;
|
||||
} else if (element == PsiUtilCore.NULL_PSI_ELEMENT) {
|
||||
myMessage = "NULL_PSI_ELEMENT ;" + message;
|
||||
myDiagnostic = Attachment.EMPTY_ARRAY;
|
||||
} else {
|
||||
boolean recursiveInvocation = Boolean.TRUE.equals(element.getUserData(REPORTING_EXCEPTION));
|
||||
element.putUserData(REPORTING_EXCEPTION, Boolean.TRUE);
|
||||
|
||||
Reference in New Issue
Block a user