You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/08/18 12:36:18 UTC

[jira] [Commented] (TAP5-736) TextField validate parameter allows Null, but throws NPE

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

ASF subversion and git services commented on TAP5-736:
------------------------------------------------------

Commit c8bf6f9739d4ab541d02c7cd9a72689335d8d919 in tapestry-5's branch refs/heads/master from [~fscheffer]
[ https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;h=c8bf6f9 ]

TAP5-736 - TextField validate parameter allows Null, but throws NPE


> TextField validate parameter allows Null, but throws NPE
> --------------------------------------------------------
>
>                 Key: TAP5-736
>                 URL: https://issues.apache.org/jira/browse/TAP5-736
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4, 5.1.0.5
>            Reporter: Lukasz Jazgar
>            Assignee: Jochen Kemnade
>              Labels: patch
>             Fix For: 5.4
>
>         Attachments: 0004-TAP5-736-TextField-validate-parameter-allows-Null-bu.patch
>
>
> Component TextField has parameter "validate" annotated by
>    @Parameter(defaultPrefix = BindingConstants.VALIDATE)
> There is no attribute allowNull, but it has default value "true" (http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/annotations/Parameter.html#allowNull()). 
> So null value is allowed according to specification.
> But if you set parameter validate to null, NullPointerException is thrown from AbstractTextProperties.begin(MarkupWriter writer), line: 173.



--
This message was sent by Atlassian JIRA
(v6.2#6252)