Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4047

WebClientInfo causes NullPointerException when the request header "User-Agent" is null.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1
    • wicket
    • Windows 7, Jetty 6.1.26, Wicket 1.5.0.

    Description

      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.

      Attachments

        1. patchsuggestion.patch
          0.5 kB
          Hielke Hoeve

        Activity

          People

            ivaynberg Igor Vaynberg
            hielkehoeve Hielke Hoeve
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified