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

EnumValueEncoder missing null check when converting to client value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.8
    • Component/s: Framework
    • Labels:
      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

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              ted Ted Steen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: