Skip to content

Commit

Permalink
Modify BulkPurge to handle Topic with no Subscriptions (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
avalanchis authored Nov 15, 2022
1 parent 465f056 commit bc288d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceBusExplorer/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6714,7 +6714,7 @@ private async Task BulkPurge(TreeNode treeNode, PurgeStrategies bulkPurgeStrateg
}

List<SubscriptionWrapper> subscriptions = new List<SubscriptionWrapper>();
Func<TreeNode, IEnumerable<SubscriptionWrapper>> subscriptionsExtractor = tn => tn.FirstNode.Nodes.Cast<TreeNode>().Select(n => n.Tag as SubscriptionWrapper);
Func<TreeNode, IEnumerable<SubscriptionWrapper>> subscriptionsExtractor = tn => tn.FirstNode?.Nodes.Cast<TreeNode>().Select(n => n.Tag as SubscriptionWrapper) ?? Enumerable.Empty<SubscriptionWrapper>();

List<QueueDescription> queues = new List<QueueDescription>();

Expand Down

0 comments on commit bc288d2

Please sign in to comment.