mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3184: updateVirtualMachine api gives java NPE.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
c49674300a
commit
31df729008
|
|
@ -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 + ". ";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue