mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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
82ffddc7b8
commit
6920d76995
@ -431,7 +431,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…
x
Reference in New Issue
Block a user