EA-91108 - PIEAE: PsiInvalidElementAccessException.createByNode

This commit is contained in:
Anna.Kozlova
2016-11-10 10:52:14 +01:00
parent 6e84d187aa
commit e4594aeb48
@@ -454,6 +454,10 @@ public class ExceptionUtil {
return Collections.emptyList();
}
if (properties != null) {
PsiUtilCore.ensureValid(method);
}
final PsiClassType[] thrownExceptions = method.getThrowsList().getReferencedTypes();
if (thrownExceptions.length == 0) {
return Collections.emptyList();