mirror of https://github.com/apache/cloudstack.git
prevent ClassCastException in UUID obtention
This commit is contained in:
parent
d4b86bb352
commit
3381c7d7c0
|
|
@ -534,7 +534,7 @@ public class ParamProcessWorker implements DispatchWorker {
|
|||
for (final Class<?> entity : entities) {
|
||||
CallContext.current().putContextParameter(entity, internalId);
|
||||
final Object objVO = _entityMgr.findByIdIncludingRemoved(entity, internalId);
|
||||
if (objVO == null) {
|
||||
if (!(objVO instanceof Identity)) {
|
||||
continue;
|
||||
}
|
||||
CallContext.current().putApiResourceUuid(annotation.name(), ((Identity) objVO).getUuid());
|
||||
|
|
|
|||
Loading…
Reference in New Issue