ServletUtils.createHTTPRequest - NullPointerException

Issue #211 resolved
Former user created an issue

If an incoming HttpServletRequest does not provide its local address, ServletUtils.createHTTPRequest fails when calling reconstructRequestURLString(). At this point, request.getLocalAddr() is stored in a String on which String.contains(".") is invoked afterwards. It is not checked, whether getLocalAddr() returned null, leading to an NullPointerException if this is the case. The incoming request was a POST Token Request and no ServletFilters are active.

Comments (2)

  1. Log in to comment