File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
api/src/main/java/org/apache/cloudstack/api/command/admin/network Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2323import java .util .LinkedHashSet ;
2424import java .util .List ;
2525import java .util .Map ;
26+ import java .util .Objects ;
2627import java .util .Set ;
2728import java .util .stream .Collectors ;
2829
@@ -235,7 +236,7 @@ public Long getServiceOfferingId() {
235236 }
236237
237238 public List <String > getSupportedServices () {
238- if (!forNsx ) {
239+ if (!isForNsx () ) {
239240 return supportedServices == null ? new ArrayList <String >() : supportedServices ;
240241 } else {
241242 List <String > services = new ArrayList <>(List .of (
@@ -283,7 +284,7 @@ public Boolean getForVpc() {
283284 }
284285
285286 public Boolean isForNsx () {
286- return forNsx ;
287+ return ! Objects . isNull ( forNsx ) && forNsx ;
287288 }
288289
289290 public String getNsxMode () {
You can’t perform that action at this time.
0 commit comments