323464 IPv6 localhost

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2227 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-08-26 03:04:30 +00:00
parent ae061725da
commit 2dcf4b2c43
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ public class Request implements HttpServletRequest
return _endp.getLocalHost();
String local = _endp.getLocalAddr();
if (local.indexOf(':')>=0)
if (local!=null && local.indexOf(':')>=0)
local="["+local+"]";
return local;
}