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

Constructor of RedirectRequestTarget does not validate URL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.8
    • 1.4.9
    • wicket
    • None

    Description

      I've just found a NullPointerException in my logs. It looks like null was passed to the constructor of RedirectRequestTarget. The NPE wasn't thrown in the constructor but later in the request cycle during #respon(RequestCycle). This makes it pretty much impossible to reproduce and debug. Checking (at least) for null should simplify this considerably. It might also be useful to check for other constraints (if any).

      Attachments

        Activity

          People

            jthomerson Jeremy Thomerson
            sfussenegger Stefan Fussenegger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: