when PIEAE happens while constructing PIEAE, try to get invalidation trace from file

This commit is contained in:
peter
2017-06-07 16:29:08 +02:00
parent 9dc2f75995
commit 87c0637b3e
@@ -131,7 +131,7 @@ public class StubBasedPsiElementBase<T extends StubElement> extends ASTDelegateP
if (mySubstrateRef instanceof SubstrateRef.StubRef) {
ApplicationManager.getApplication().assertReadAccessAllowed();
PsiFileImpl file = (PsiFileImpl)getContainingFile();
if (!file.isValid()) throw new PsiInvalidElementAccessException(this);
if (!file.isValid()) throw new PsiInvalidElementAccessException(file);
FileElement treeElement = file.getTreeElement();
if (treeElement != null && mySubstrateRef instanceof SubstrateRef.StubRef) {