Skip to content

Commit

Permalink
Fixed handling of null credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
mackdk authored and mcalmer committed Aug 10, 2023
1 parent 7d2cc6d commit 89f8054
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,8 @@ private List<ProductTreeEntry> loadStaticTree(String tag) throws ContentSyncExce
}

// If we have only RMT credentials
if (!credentials.isEmpty() && credentials.stream().allMatch(c -> c.isTypeOf(Credentials.TYPE_CLOUD_RMT))) {
if (!credentials.isEmpty() &&
credentials.stream().allMatch(c -> c != null && c.isTypeOf(Credentials.TYPE_CLOUD_RMT))) {
// Remove Ubuntu and Debian products until RMT supports them
tree.removeIf(productEntry -> productEntry.getChannelLabel().contains("amd64") ||
productEntry.getParentChannelLabel().filter(label -> label.contains("amd64")).isPresent());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed handling of null credentials in RMT credentials check

0 comments on commit 89f8054

Please sign in to comment.