Virtual hosts may be non-null but not contain any entries
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@273 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
515c800bf9
commit
f10ddda835
|
@ -483,7 +483,10 @@ public class WebInfConfiguration implements Configuration
|
|||
//Virtual host (if there is one)
|
||||
canonicalName.append("_");
|
||||
String[] vhosts = context.getVirtualHosts();
|
||||
canonicalName.append((vhosts==null||vhosts[0]==null?"":vhosts[0]));
|
||||
if (vhosts == null || vhosts.length <= 0)
|
||||
canonicalName.append("");
|
||||
else
|
||||
canonicalName.append(vhosts[0]);
|
||||
|
||||
//base36 hash of the whole string for uniqueness
|
||||
String hash = Integer.toString(canonicalName.toString().hashCode(),36);
|
||||
|
|
Loading…
Reference in New Issue