mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix NPE on CIDR list check (#6053)
This commit is contained in:
parent
8eed111521
commit
648f2c1d82
@ -1182,6 +1182,9 @@ public class NetUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isValidCidrList(final String cidrList) {
|
public static boolean isValidCidrList(final String cidrList) {
|
||||||
|
if (StringUtils.isBlank(cidrList)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
for (final String guestCidr : cidrList.split(",")) {
|
for (final String guestCidr : cidrList.split(",")) {
|
||||||
if (!isValidIp4Cidr(guestCidr)) {
|
if (!isValidIp4Cidr(guestCidr)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user