CLOUDSTACK-7581: Empty 'ID' parameters allowed in API calls

Fix is to fail API calls with empty 'id' parameter value upfront rather than going ahead and failing with NPE later on
This commit is contained in:
Koushik Das 2014-09-18 17:10:25 +05:30
parent 7f440854f7
commit 4e07dd1dc4

View File

@ -329,8 +329,6 @@ public class ParamProcessWorker implements DispatchWorker {
field.set(cmdObj, listParam);
break;
case UUID:
if (paramObj.toString().isEmpty())
break;
final Long internalId = translateUuidToInternalId(paramObj.toString(), annotation);
field.set(cmdObj, internalId);
break;