You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2011/09/13 18:49:09 UTC
[jira] [Assigned] (WICKET-4047) WebClientInfo causes NullPointerException when the request header "User-Agent" is null.
[ https://issues.apache.org/jira/browse/WICKET-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg reassigned WICKET-4047:
-------------------------------------
Assignee: Igor Vaynberg
> WebClientInfo causes NullPointerException when the request header "User-Agent" is null.
> ----------------------------------------------------------------------------------------
>
> Key: WICKET-4047
> URL: https://issues.apache.org/jira/browse/WICKET-4047
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.0
> Environment: Windows 7, Jetty 6.1.26, Wicket 1.5.0.
> Reporter: Hielke Hoeve
> Assignee: Igor Vaynberg
> Priority: Minor
> Labels: NPE, useragent, wicket
> Attachments: patchsuggestion.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> When the value of request header "User-Agent" is null, the class UserAgent tries to match UserAgent.INTERNET_EXPLORER against null, which results in a NullPointerException (UserAgent.java:90 and UserAgent.java:102).
> The function matches(String) of class UserAgent should check for null values.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira