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
            Priority: Minor


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


Reply via email to