cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject [3/3] git commit: updated refs/heads/4.2 to 1a462d2
Date Wed, 03 Jul 2013 16:15:12 GMT
CLOUDSTACK-3184: updateVirtualMachine api gives java NPE.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 31df729008c748e6eafe49ff86e1da618013c551)


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

Branch: refs/heads/4.2
Commit: b99355698823bf7fecfa4fddcc63e5b0e76c4931
Parents: 7db538e
Author: Sanjay Tripathi <sanjay.tripathi@citrix.com>
Authored: Wed Jul 3 16:32:38 2013 +0530
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Wed Jul 3 21:44:56 2013 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b9935569/server/src/com/cloud/vm/UserVmManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/UserVmManagerImpl.java b/server/src/com/cloud/vm/UserVmManagerImpl.java
index caaf96c..e5faaf1 100755
--- a/server/src/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/com/cloud/vm/UserVmManagerImpl.java
@@ -1782,7 +1782,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager,
Use
 
         String description = "";
 
-        if (!displayName.equals(vmInstance.getDisplayName())) {
+        if (displayName != null && !displayName.equals(vmInstance.getDisplayName()))
{
             description += "New display name: " + displayName + ". ";
         }
 


Mime
View raw message