mirror of https://github.com/apache/cloudstack.git
CS-15055: DB exception when creating n1kv VSM when adding a cluster via the latest management server GUI.
Description: Missed a check for Null pointer.
This commit is contained in:
parent
686064a8be
commit
ab12628925
|
|
@ -415,7 +415,7 @@ public class ResourceManagerImpl implements ResourceManager, ResourceService, Ma
|
|||
clusterId = cluster.getId();
|
||||
result.add(cluster);
|
||||
|
||||
if (cmd.getAddVSMFlag().equalsIgnoreCase("true")) {
|
||||
if (cmd.getAddVSMFlag() != null && cmd.getAddVSMFlag().equalsIgnoreCase("true")) {
|
||||
|
||||
String vsmIp = cmd.getVSMIpaddress();
|
||||
String vsmUser = cmd.getVSMUsername();
|
||||
|
|
|
|||
Loading…
Reference in New Issue