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

NPE in BookmarkablePageRequestTarget

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-M1
    • 1.4-M3
    • wicket
    • None
    • any

    Description

      In BookmarkablePageRequestTarget line 292

      for (Entry<String, Object> entry : pageParameters.entrySet())

      { final Object value = entry.getValue(); * if (value.getClass().isArray()) [...] }

      I'm getting a NPE. Values can be null in PageParameters, so you should check null here.

      Also found that BookmarkablePageRequestTarget(String pageMapName, Class<C> pageClass) wasn't correct (wasn't passing pageMap).

      Attachments

        1. bookmarkable.patch
          1 kB
          Doug Donohoe

        Activity

          People

            ivaynberg Igor Vaynberg
            donohoedigital Doug Donohoe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: