[
https://issues.apache.org/jira/browse/GROOVY-12704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-12704.
----------------------------------
Fix Version/s: 7.0.0-alpha-1
Resolution: Fixed
https://github.com/apache/groovy/commit/572ab04fdf5d84d77079f4e350eb6c5b20290685
> Get and set property on null object errors
> ------------------------------------------
>
> Key: GROOVY-12704
> URL: https://issues.apache.org/jira/browse/GROOVY-12704
> Project: Groovy
> Issue Type: Bug
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 7.0.0-alpha-1
>
>
> [https://github.com/apache/groovy/pull/1767#issuecomment-6643075904]
> {code:groovy}
> foo = null
> bar = 'baz'
> foo."$bar"
> {code}
> This used to say "Cannot get property 'baz' on null object" but now runs into
> an unexpected NPE within the runtime.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)