Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix breaking change of the deprecated constructor of PersistentMessag…
…eExpiryMonitor ### Motivation apache#20781 adds a new constructor to `PersistentMessageExpiryMonitor` and initialize the old constructor with ```java this.topic = subscription.topic; ``` NPE will happen when `subscription` is null. However, it's allowed to pass a null `subscription` for test because methods like `findEntryFailed` don't depend on the `topic` field. ### Modifications Add the null check and mark the old constructor as deprecated.
- Loading branch information