NPE on incomplete code fixed
This commit is contained in:
@@ -273,6 +273,7 @@ public class JetControlFlowProcessor {
|
|||||||
JetSimpleNameExpression operationSign = expression.getOperationSign();
|
JetSimpleNameExpression operationSign = expression.getOperationSign();
|
||||||
IElementType operationType = operationSign.getReferencedNameElementType();
|
IElementType operationType = operationSign.getReferencedNameElementType();
|
||||||
JetExpression baseExpression = expression.getBaseExpression();
|
JetExpression baseExpression = expression.getBaseExpression();
|
||||||
|
if (baseExpression == null) return;
|
||||||
if (JetTokens.LABELS.contains(operationType)) {
|
if (JetTokens.LABELS.contains(operationType)) {
|
||||||
String referencedName = operationSign.getReferencedName();
|
String referencedName = operationSign.getReferencedName();
|
||||||
referencedName = referencedName == null ? " <?>" : referencedName;
|
referencedName = referencedName == null ? " <?>" : referencedName;
|
||||||
|
|||||||
Reference in New Issue
Block a user