[
https://issues.apache.org/jira/browse/WICKET-1676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Donohoe updated WICKET-1676:
---------------------------------
Attachment: bookmarkable.patch
Added null check, fixed BookmarkablePageRequestTarget(String pageMapName,
Class<C> pageClass) constructor and a couple of other minor tweaks recommended
by intellij.
> NPE in BookmarkablePageRequestTarget
> ------------------------------------
>
> Key: WICKET-1676
> URL: https://issues.apache.org/jira/browse/WICKET-1676
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-M1
> Environment: any
> Reporter: Doug Donohoe
> Fix For: 1.4-M2
>
> Attachments: bookmarkable.patch
>
>
> 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).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.