Skip to content

Commit

Permalink
Update Content app nullptrs
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarkov committed Jun 24, 2024
1 parent 04a996d commit 8bf7d58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void setEndpointId(int endpoint) {
}

public Set<SupportedCluster> getSupportedClusters() {
return Collections.unmodifiableSet(supportedClusters);
return supportedClusters != null ? Collections.unmodifiableSet(supportedClusters) : Collections.EMPTY_SET;
}

public String getVersion() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ private Collection<ContentAppSupportedCluster> mapSupportedClusters(
Collection<SupportedCluster> supportedClusters) {
return supportedClusters
.stream()
.filter(Objects::nonNull)
.map(AppPlatformService::mapSupportedCluster)
.collect(Collectors.toList());
}
Expand Down

0 comments on commit 8bf7d58

Please sign in to comment.