Skip to content

Commit 59482b3

Browse files
committed
CID-1211005: Fix comparison, Class<?> is always instance of Class
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent b394680 commit 59482b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎server/src/com/cloud/event/ActionEventUtils.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private static void populateFirstClassEntities(Map<String, String> eventDescript
301301
try{
302302
Object key = entry.getKey();
303303
Class<?> clz = Class.forName((String)key);
304-
if(clz instanceof Class && Identity.class.isAssignableFrom(clz)){
304+
if(clz != null && Identity.class.isAssignableFrom(clz)){
305305
String uuid = getEntityUuid(clz, entry.getValue());
306306
eventDescription.put(ReflectUtil.getEntityName(clz), uuid);
307307
}

0 commit comments

Comments
 (0)