[
https://issues.apache.org/jira/browse/GROOVY-10697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-10697.
----------------------------------
Resolution: Fixed
> @ToString throws an NPE for POJO with null field
> ------------------------------------------------
>
> Key: GROOVY-10697
> URL: https://issues.apache.org/jira/browse/GROOVY-10697
> Project: Groovy
> Issue Type: Bug
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Fix For: 4.0.5
>
>
> {code:java}
> import groovy.transform.*
> @ToString(pojo=true)
> @CompileStatic
> class Clazz {
> String field = null
> }
> println new Clazz() // NPE!!
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)