mirror of https://github.com/apache/cloudstack.git
api: Skip empty uuid processing in ApiDispatcher for received params
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
3e292869eb
commit
7b6132e8e2
|
|
@ -619,6 +619,8 @@ public class ApiDispatcher {
|
|||
field.set(cmdObj, listParam);
|
||||
break;
|
||||
case UUID:
|
||||
if (paramObj.toString().isEmpty())
|
||||
break;
|
||||
// There may be multiple entities defined on the @Entity of a Response.class
|
||||
// UUID CommandType would expect only one entityType, so use the first entityType
|
||||
Class<?>[] entities = annotation.entityType()[0].getAnnotation(Entity.class).value();
|
||||
|
|
|
|||
Loading…
Reference in New Issue