fixed index issue

This commit is contained in:
Tony Tam 2015-12-30 10:42:20 -08:00
parent 05b0d8f1bf
commit 460e5befec

View File

@ -171,7 +171,7 @@ public class JaxRSServerCodegen extends JavaClientCodegen implements CodegenConf
String port = "8080";
if(host != null) {
String[] parts = host.split(":");
if(parts.length > 0) {
if(parts.length > 1) {
port = parts[1];
}
}