cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [05/10] git commit: updated refs/heads/master to 410092b
Date Thu, 25 Sep 2014 15:19:31 GMT
CID-1211005: Fix comparison, Class<?> is always instance of Class

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/59482b3e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/59482b3e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/59482b3e

Branch: refs/heads/master
Commit: 59482b3eba268570885d64dc9b0527a90cabbc07
Parents: b394680
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Thu Sep 25 16:52:09 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Thu Sep 25 16:52:09 2014 +0200

----------------------------------------------------------------------
 server/src/com/cloud/event/ActionEventUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/59482b3e/server/src/com/cloud/event/ActionEventUtils.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/event/ActionEventUtils.java b/server/src/com/cloud/event/ActionEventUtils.java
index 68a328b..2ac4303 100755
--- a/server/src/com/cloud/event/ActionEventUtils.java
+++ b/server/src/com/cloud/event/ActionEventUtils.java
@@ -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);
                 }


Mime
View raw message