CLOUDSTACK-3184: updateVirtualMachine api gives java NPE.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 31df729008)
This commit is contained in:
Sanjay Tripathi 2013-07-03 16:32:38 +05:30 committed by Prasanna Santhanam
parent 7db538efc6
commit b993556988
1 changed files with 1 additions and 1 deletions

View File

@ -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 + ". ";
}