Fixed bug on rr clients

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@142213 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-02-03 17:32:11 +00:00
parent 3d35c029ab
commit d33bbbca7c
1 changed files with 7 additions and 1 deletions

View File

@ -279,7 +279,13 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
String res = result.toString(); String res = result.toString();
logger.trace("Server returned content : {}", res); logger.trace("Server returned content : {}", res);
return (C) ISMapper.unmarshal((Class<ISManageable>) clazz, res); if(Boolean.class.isAssignableFrom(clazz)){
return (C) ((Boolean) Boolean.getBoolean(res)) ;
}else if(ISManageable.class.isAssignableFrom(clazz)){
return (C) ISMapper.unmarshal((Class<ISManageable>) clazz, res);
}
return (C) res;
} }
} }