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

NPE in JsonUtils when the value is null

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.13.0
    • Fix Version/s: 6.14.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:

      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

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              phantom Ilia Naryzhny

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment