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

TextField validate parameter allows Null, but throws NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4, 5.1.0.5
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: