Skip to content

Commit

Permalink
fix wrong check leading to subscription not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
DC2-DanielKrueger committed Feb 11, 2025
1 parent 2cc2c30 commit 9ba3abf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -494,13 +494,13 @@ private static void sanitize(final @NotNull Bridge bridge) {
bridge.setSessionExpiry(3600L);
}

if (bridge.getLocalSubscriptions() != null) {
if (bridge.getLocalSubscriptions() == null) {
bridge.setLocalSubscriptions(List.of());
}

bridge.getLocalSubscriptions().forEach(BridgeResourceImpl::sanitize);

if (bridge.getRemoteSubscriptions() != null) {
if (bridge.getRemoteSubscriptions() == null) {
bridge.setRemoteSubscriptions(List.of());
}

Expand Down

0 comments on commit 9ba3abf

Please # to comment.