DaanHoogland commented on a change in pull request #4714:
URL: https://github.com/apache/cloudstack/pull/4714#discussion_r581170130
##########
File path: server/src/main/java/com/cloud/network/IpAddressManagerImpl.java
##########
@@ -824,11 +824,11 @@ public IPAddressVO doInTransaction(TransactionStatus
status) throws Insufficient
if (vlanDbIds == null ||
vlanDbIds.contains(nonDedicatedVlan.getId()))
nonDedicatedVlanDbIds.add(nonDedicatedVlan.getId());
}
- if (dedicatedVlanDbIds != null &&
!dedicatedVlanDbIds.isEmpty()) {
+ if (!dedicatedVlanDbIds.isEmpty()) {
fetchFromDedicatedRange = true;
sc.setParameters("vlanId", dedicatedVlanDbIds.toArray());
errorMessage.append(", vlanId id=" +
Arrays.toString(dedicatedVlanDbIds.toArray()));
- } else if (nonDedicatedVlanDbIds != null &&
!nonDedicatedVlanDbIds.isEmpty()) {
Review comment:
yes, you could have told me before i checked it ;)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]