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

Constructor of RedirectRequestTarget does not validate URL

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4.8
    • Fix Version/s: 1.4.9
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: