wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Thomerson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WICKET-1513) "input" tag with type="image" results in null pointer exception in AutoLinkResolver
Date Mon, 01 Dec 2008 05:32:46 GMT

     [ https://issues.apache.org/jira/browse/WICKET-1513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeremy Thomerson updated WICKET-1513:
-------------------------------------

    Attachment: 1513.patch

Here's a patch that fixes it by adding the appropriate resolvers to AutoLinkResolver.

> "input" tag with type="image" results in null pointer exception in AutoLinkResolver
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-1513
>                 URL: https://issues.apache.org/jira/browse/WICKET-1513
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2, 1.3.3
>            Reporter: Mikael Hansen
>         Attachments: 1513.patch
>
>
> Something like:
> <input type="image" value="Sign up" src="images/ok.png" />
> should reproduce the error (this is valid XHTML).
> or:
> <embed src="flash.swf" />
> or:
> <anything src="..." />
> java.lang.NullPointerException
>      at org.apache.wicket.markup.resolver.AutoLinkResolver$PathInfo.<init>(AutoLinkResolver.java:249)
>      at org.apache.wicket.markup.resolver.AutoLinkResolver.resolveAutomaticLink(AutoLinkResolver.java:808)
>      at org.apache.wicket.markup.resolver.AutoLinkResolver.resolve(AutoLinkResolver.java:742)
>      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
>      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1427)
>      at org.apache.wicket.Page.onRender(Page.java:1460)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message