Wicket
  1. Wicket
  2. WICKET-5272

NPE on unmount in BookmarkableMapper.java:189

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.8.0, 6.9.0, 6.9.1
    • Fix Version/s: 6.10.0, 7.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      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()".

        Issue Links

          Activity

          Sven Meier made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Sven Meier [ svenmeier ]
          Fix Version/s 7.0.0 [ 12322958 ]
          Fix Version/s 6.10.0 [ 12324643 ]
          Resolution Fixed [ 1 ]
          Sven Meier made changes -
          Field Original Value New Value
          Link This issue is broken by WICKET-5071 [ WICKET-5071 ]
          TLA created issue -

            People

            • Assignee:
              Sven Meier
              Reporter:
              TLA
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development