tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2529) NullPointerException in org.apache.tapestry5.ioc.internal.util.InternalUtils.join(List)
Date Wed, 13 Jan 2016 13:14:39 GMT

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

Jochen Kemnade commented on TAP5-2529:
--------------------------------------

Given that {{null}} values in lists with more than one element are converted to the string
"null", we should return "null" for {{[ null ]}}.

> NullPointerException in org.apache.tapestry5.ioc.internal.util.InternalUtils.join(List)
> ---------------------------------------------------------------------------------------
>
>                 Key: TAP5-2529
>                 URL: https://issues.apache.org/jira/browse/TAP5-2529
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.4
>            Reporter: Jochen Kemnade
>
> {{InternalUtils.join(Collections.singletonList(null))}} throws a {{NullPointerException}}
because it tries to call {{null.toString()}}:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.tapestry5.ioc.internal.util.InternalCommonsUtils.join(InternalCommonsUtils.java:268)
> 	at org.apache.tapestry5.ioc.internal.util.InternalCommonsUtils.join(InternalCommonsUtils.java:248)
> 	at org.apache.tapestry5.ioc.internal.util.InternalUtils.join(InternalUtils.java:395)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message