api: Skip empty uuid processing in ApiDispatcher for received params

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2012-12-18 18:16:18 -08:00
parent 3e292869eb
commit 7b6132e8e2
1 changed files with 2 additions and 0 deletions

View File

@ -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();