janhaag/PSE2011 — Issue #39: NPException on function calls
Author: ratefuchs
Created: 2012-02-26 21:11:21+00:00
State: open

When trying to parse the following (correct!) program:

bool f(){return true;}
main(){assert f();}

the following exception occurs:
java.lang.NullPointerException
at java.util.LinkedList.addAll(LinkedList.java:269)
at java.util.LinkedList.addAll(LinkedList.java:247)
at parser.WhileLanguageParser.qe_helper(WhileLanguageParser.java:2441)
at parser.WhileLanguageParser.quantified_expression(WhileLanguageParser.java:2311)
at parser.WhileLanguageParser.assert_statement(WhileLanguageParser.java:1382)
at parser.WhileLanguageParser.statement(WhileLanguageParser.java:1079)
at parser.WhileLanguageParser.main_body(WhileLanguageParser.java:762)
at parser.WhileLanguageParser.main(WhileLanguageParser.java:400)
at parser.WhileLanguageParser.program(WhileLanguageParser.java:192)
at parser.ParserInterface.parseProgram(ParserInterface.java:41)