You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/07/22 04:30:00 UTC

[jira] [Commented] (GROOVY-10697) @ToString throws an NPE for POJO with null field

    [ https://issues.apache.org/jira/browse/GROOVY-10697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17569784#comment-17569784 ] 

ASF GitHub Bot commented on GROOVY-10697:
-----------------------------------------

paulk-asert merged PR #1751:
URL: https://github.com/apache/groovy/pull/1751




> @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
>            Priority: Major
>
> {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)