Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2025 Contributors to the Eclipse Foundation.
* Copyright (c) 1997, 2020 Oracle and/or its affiliates.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -68,14 +69,16 @@ public List<ClusterInstanceInfo> getClusterInstanceInfo(
String[] adapterName) {

// Make a copy of the internal data
return new ArrayList( internalClusterInstanceInfo() ) ;
List<ClusterInstanceInfo> internalInfo = internalClusterInstanceInfo();
return internalInfo == null ? new ArrayList<>() : new ArrayList<>(internalInfo);
}

public List<ClusterInstanceInfo> getClusterInstanceInfo(
String[] adapterName, List<String> endpoints ) {

// Make a copy of the internal data
return new ArrayList( internalClusterInstanceInfo( endpoints ) ) ;
List<ClusterInstanceInfo> internalInfo = internalClusterInstanceInfo(endpoints);
return internalInfo == null ? new ArrayList<>() : new ArrayList<>(internalInfo);
}

@Folb
Expand Down