mirror of https://github.com/apache/cloudstack.git
CID-1211005: Fix comparison, Class<?> is always instance of Class
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 59482b3eba)
This commit is contained in:
parent
fbb9e2b210
commit
ff42d5ad54
|
|
@ -301,7 +301,7 @@ public class ActionEventUtils {
|
|||
try{
|
||||
Object key = entry.getKey();
|
||||
Class<?> clz = Class.forName((String)key);
|
||||
if(clz instanceof Class && Identity.class.isAssignableFrom(clz)){
|
||||
if(clz != null && Identity.class.isAssignableFrom(clz)){
|
||||
String uuid = getEntityUuid(clz, entry.getValue());
|
||||
eventDescription.put(ReflectUtil.getEntityName(clz), uuid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue