mirror of https://github.com/apache/cloudstack.git
DeployVmCmd: Fix NPE case
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
82eebab0ba
commit
d2bf21065e
|
|
@ -300,8 +300,8 @@ public class DeployVMCmd extends BaseAsyncCreateCustomIdCmd {
|
|||
}
|
||||
|
||||
public List<Long> getNetworkIds() {
|
||||
if (ipToNetworkList != null) {
|
||||
if (networkIds != null || ipAddress != null || getIp6Address() != null) {
|
||||
if (ipToNetworkList != null && !ipToNetworkList.isEmpty()) {
|
||||
if ((networkIds != null && !newtworkIds.isEmpty()) || ipAddress != null || getIp6Address() != null) {
|
||||
throw new InvalidParameterValueException("ipToNetworkMap can't be specified along with networkIds or ipAddress");
|
||||
} else {
|
||||
List<Long> networks = new ArrayList<Long>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue