fix CCE (IDEA-176405)

This commit is contained in:
Eugene Zhuravlev
2018-03-28 10:56:06 +03:00
parent 173a8e34c7
commit 3ca0313a6c
@@ -120,7 +120,8 @@ public class PsiJShellHolderMethodImpl extends ASTWrapperPsiElement implements P
@Nullable
@Override
public PsiCodeBlock getBody() {
return (PsiCodeBlock)getFirstChild();
final PsiElement child = getFirstChild();
return child instanceof PsiCodeBlock? (PsiCodeBlock)child : null;
}
@Override