Skip to content

Commit

Permalink
Add missing filter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Flanker32 committed Oct 26, 2020
1 parent fc6be56 commit 20317e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected void refreshItems() throws AzureCmdException {
SubscriptionManager subscriptionManager = azureManager.getSubscriptionManager();
Set<String> sidList = subscriptionManager.getSelectedSubscriptionDetails()
.stream()
.filter(Objects::nonNull)
.filter(subscriptionDetail -> Objects.nonNull(subscriptionDetail) && subscriptionDetail.isSelected())
.map(subscriptionDetail -> subscriptionDetail.getSubscriptionId())
.collect(Collectors.toSet());
for (String sid : sidList) {
Expand Down

0 comments on commit 20317e2

Please sign in to comment.