another comparison fix

This commit is contained in:
Grant Limberg 2020-11-24 14:12:03 -08:00
parent 13d7e2f2b9
commit 86ff1e7cd2
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 4 additions and 1 deletions

View file

@ -152,7 +152,9 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
}
boolean dnsEquals = false;
if (this.dns != null && cfg.dns != null) {
if (this.dns == null || cfg.dns == null) {
dnsEquals = true;
} else if (this.dns != null) {
dnsEquals = this.dns.equals(cfg.dns);
}