Skip to content

Commit

Permalink
[AS7-6160] Add isDefined() check on ModelNode for wsdl-host
Browse files Browse the repository at this point in the history
  • Loading branch information
asoldano authored and bstansberry committed Dec 14, 2012
1 parent 3c8790c commit bc4c8c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static ServerConfigImpl createServerConfig(ModelNode configuration, bool
final ServerConfigImpl config = ServerConfigImpl.newInstance();
try {
ModelNode wsdlHost = Attributes.WSDL_HOST.resolveModelAttribute(context, configuration);
config.setWebServiceHost(wsdlHost.asString());
config.setWebServiceHost(wsdlHost.isDefined() ? wsdlHost.asString() : null);
} catch (UnknownHostException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit bc4c8c0

Please sign in to comment.