Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-736

TextField validate parameter allows Null, but throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.4, 5.1.0.5
    • 5.4
    • tapestry-core

    Description

      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.

      Attachments

        Activity

          People

            jkemnade Jochen Kemnade
            ljazgar Lukasz Jazgar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: