Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1957

EnumValueEncoder missing null check when converting to client value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0.6
    • 5.0.8
    • Framework
    • None

    Description

      Sometimes a SelectModel has a disabled "select an option..."-option (or just a breaking line) which is mapped to null.
      When this is used with the EnumValueEncoder, toClient(E value) throws a NPE.
      A simple null check solves this problem. (see patch)

      Attachments

        1. enumvalueencoderpatch.patch
          0.5 kB
          Ted Steen

        Activity

          People

            hlship Howard Lewis Ship
            ted Ted Steen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: