var args = validator_.validateArgs(arguments, [
{'name' : 'localMessagePortName', 'type': types_.STRING}
]);
+
+ if ('' === args.localMessagePortName) {
+ throw new WebAPIException(WebAPIException.INVALID_VALUES_ERR,
+ 'Port name cannot be empty.');
+ }
+
var localPortId;
var nativeParam = {
'localMessagePortName': args.localMessagePortName
{'name' : 'localMessagePortName', 'type': types_.STRING}
]);
+ if ('' === args.localMessagePortName) {
+ throw new WebAPIException(WebAPIException.INVALID_VALUES_ERR,
+ 'Port name cannot be empty.');
+ }
+
var nativeParam = {
'localMessagePortName': args.localMessagePortName
};