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

NPE on unmount in BookmarkableMapper.java:189

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.8.0, 6.9.0, 6.9.1
    • 6.10.0, 7.0.0-M1
    • None
    • None
    • OSGi, Oracle JDK 1.7.0_21

    Description

      When unmounting a page, I get a NullPointerException from BookmarkableMapper.java:189.

      Snippet of the StackTrace:

      java.lang.NullPointerException
      at org.apache.wicket.core.request.mapper.BookmarkableMapper.matches(BookmarkableMapper.java:189)
      at org.apache.wicket.core.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:98)
      at org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:288)
      at org.apache.wicket.request.mapper.CompoundRequestMapper.unmount(CompoundRequestMapper.java:254)
      at org.apache.wicket.protocol.http.WebApplication.unmount(WebApplication.java:391)
      at ...

      In CompoundRequestMapper.java:250 a Request is created, which returns null on getClientUrl() (see CompoundRequestMapper.java:291). This getClientUrl() is used as "baseUrl" at BookmarkableMapper.java:179 which leads to the NPE at BookmarkableMapper.java:189 "baseUrl.getSegments()".

      Attachments

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              tla TLA
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: