Skip to content

Commit 8277751

Browse files
committed
NE: apply Vishesh's suggestion
1 parent 7b67fec commit 8277751

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ public void setDhcpProviders(final List<DhcpServiceProvider> dhcpProviders) {
481481
*/
482482
private List<NetworkElement> getNetworkElementsIncludingExtensions() {
483483
List<Extension> extensions = extensionHelper.listExtensionsByType(Extension.Type.NetworkOrchestrator);
484-
if (extensions == null || extensions.isEmpty()) {
484+
if (CollectionUtils.isEmpty(extensions)) {
485485
return networkElements;
486486
}
487487
List<NetworkElement> combined = new ArrayList<>(networkElements);

0 commit comments

Comments
 (0)