Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-340

[Patch] Unexpected NPE in MapVariableInterpolator

    XMLWordPrintableJSON

Details

    Description

      When MapVariableInterpolator interpolates a string that contains variables missing in the variable map, it throws a NPE even if exceptionOnNullVarValue is set to false. The bug is in the getValue method - toString() is invoken directly on tha value returned from the map.

      A trivial patch is attached.

      Attachments

        1. MapVariableInterpolator.patch
          0.7 kB
          Martin Benda

        Activity

          People

            jbq Jean-Baptiste Quenot
            bendis Martin Benda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: