Bugs item #1434999, was opened at 2006-02-20 06:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1434999&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Derricutt (talios)
Assigned to: Nobody/Anonymous (nobody)
Summary: NullPointerException thrown in Bookmarkable Pages

Initial Comment:
I've lately been getting NullPointerExceptions in
BookmarkablePageRequestTargetUrlCodingStrategy when
going to links with <wicket:link><a
href="About.html">About</a></wicket:link> or following
some form submissions.

This seems to occur when there is no PageParameters
instance on the Page, a quick-fix patch for this is:

diff -u -w -r1.5
BookmarkablePageRequestTargetUrlCodingStrategy.java
---
src/java/wicket/request/target/coding/BookmarkablePageRequestTargetUrlCodingStrategy.java
  17 Feb 2006 18:22:06 -0000      1.5
+++
src/java/wicket/request/target/coding/BookmarkablePageRequestTargetUrlCodingStrategy.java
  20 Feb 2006 05:58:57 -0000
@@ -73,7 +73,9 @@
                url.append(getMountPath());
                final IBookmarkablePageRequestTarget
target = (IBookmarkablePageRequestTarget)requestTarget;

+        if (target.getPageParameters() != null) {
               
target.getPageParameters().put("wicket:pageMapName",
pageMapName);
+        }
                appendPageParameters(url,
target.getPageParameters());
                return url.toString();
        }


Should a page -always- have a PageParameters instance
even if there are no parameters?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1434999&group_id=119783


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to