363381 Throw IllegalStateException if Request uri is null on getServerName
This commit is contained in:
parent
ab12d04527
commit
8458df32cb
|
@ -988,6 +988,9 @@ public class Request implements HttpServletRequest
|
|||
// Return already determined host
|
||||
if (_serverName != null)
|
||||
return _serverName;
|
||||
|
||||
if (_uri == null)
|
||||
throw new IllegalStateException("No uri");
|
||||
|
||||
// Return host from absolute URI
|
||||
_serverName = _uri.getHost();
|
||||
|
|
Loading…
Reference in New Issue