diagnostics for EA-60403 - assert: PsiMethodCallExpressionImpl.getArgumentList

This commit is contained in:
Alexey Kudravtsev
2014-12-22 14:32:24 +03:00
parent 6caa6c1fbd
commit 3d1595ca40
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -97,8 +97,9 @@ public class PsiMethodCallExpressionImpl extends ExpressionPsiElement implements
@NotNull
public PsiExpressionList getArgumentList() {
PsiExpressionList list = (PsiExpressionList)findChildByRoleAsPsiElement(ChildRole.ARGUMENT_LIST);
if (list != null) return list;
LOG.error("Invalid PSI. Children:" + DebugUtil.psiToString(this, false));
if (list == null) {
LOG.error("Invalid PSI for'" + getText() + ". Parent:" + DebugUtil.psiToString(getParent(), false));
}
return list;
}