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

NPE in JsonUtils when the value is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.13.0
    • 6.14.0, 7.0.0-M1
    • wicket

    Description

      Most part of org.apache.wicket.ajax.json.JsonUtils.asArray(Map<String, Object> map) is trying carefully avoid null value. But there is following line

      else if (value.getClass().isArray())

      which cause NPE in case of empty value for some key.

      P.S. Will provide patch.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            phantom Ilia Naryzhny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: