mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CID-1211005: Fix comparison, Class<?> is always instance of Class
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> (cherry picked from commit 59482b3eba268570885d64dc9b0527a90cabbc07)
This commit is contained in:
parent
fbb9e2b210
commit
ff42d5ad54
@ -301,7 +301,7 @@ public class ActionEventUtils {
|
|||||||
try{
|
try{
|
||||||
Object key = entry.getKey();
|
Object key = entry.getKey();
|
||||||
Class<?> clz = Class.forName((String)key);
|
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());
|
String uuid = getEntityUuid(clz, entry.getValue());
|
||||||
eventDescription.put(ReflectUtil.getEntityName(clz), uuid);
|
eventDescription.put(ReflectUtil.getEntityName(clz), uuid);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user