NPE on incomplete code fixed

This commit is contained in:
svtk
2011-11-04 22:51:32 +04:00
parent e225bf5e93
commit bd1898cff2
@@ -273,6 +273,7 @@ public class JetControlFlowProcessor {
JetSimpleNameExpression operationSign = expression.getOperationSign();
IElementType operationType = operationSign.getReferencedNameElementType();
JetExpression baseExpression = expression.getBaseExpression();
if (baseExpression == null) return;
if (JetTokens.LABELS.contains(operationType)) {
String referencedName = operationSign.getReferencedName();
referencedName = referencedName == null ? " <?>" : referencedName;