[ https://issues.apache.org/jira/browse/GROOVY-11565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles resolved GROOVY-11565. ---------------------------------- Fix Version/s: 5.0.0-alpha-13 Resolution: Fixed https://github.com/apache/groovy/commit/081fa5016966a3680efa55eb58ad9506797541c9 > empty if/else seems to confuse the parser > ----------------------------------------- > > Key: GROOVY-11565 > URL: https://issues.apache.org/jira/browse/GROOVY-11565 > Project: Groovy > Issue Type: Bug > Components: parser-antlr4 > Affects Versions: 4.0.25 > Reporter: OC > Assignee: Eric Milles > Priority: Trivial > Fix For: 5.0.0-alpha-13 > > > {code} > 1209 ocs /tmp> <q.groovy > if (foo) ; > else ; > 1210 ocs /tmp> /usr/local/groovy-4.0.25/bin/groovy q > Caught: BUG! exception in phase 'conversion' in source unit > '/private/tmp/q.groovy' null > BUG! exception in phase 'conversion' in source unit '/private/tmp/q.groovy' > null > Caused by: java.lang.NullPointerException > 1211 ocs /tmp> > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)