mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-26 03:32:23 +00:00
Fixed NPE
This commit is contained in:
parent
471117561b
commit
cd2c50b8a8
@ -188,9 +188,11 @@ public class Pass1GenerateStatementSequence extends KickCBaseVisitor<Object> {
|
||||
this.visit(stmtForCtx.stmt());
|
||||
}
|
||||
// Add increment
|
||||
PrePostModifierHandler.addPreModifiers(this, ctx.expr(1));
|
||||
this.visit(ctx.expr(1));
|
||||
PrePostModifierHandler.addPostModifiers(this, ctx.expr(1));
|
||||
if(ctx.expr(1)!=null) {
|
||||
PrePostModifierHandler.addPreModifiers(this, ctx.expr(1));
|
||||
this.visit(ctx.expr(1));
|
||||
PrePostModifierHandler.addPostModifiers(this, ctx.expr(1));
|
||||
}
|
||||
// Add condition
|
||||
PrePostModifierHandler.addPreModifiers(this, ctx.expr(0));
|
||||
RValue rValue = (RValue) this.visit(ctx.expr(0));
|
||||
|
Loading…
Reference in New Issue
Block a user