[MDSAL-545] Improve DOMNotificationRouter checks for closed registrations Created: 27/Apr/20 Updated: 28/Apr/20 Resolved: 28/Apr/20 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | DOM runtime |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.14, 6.0.1, 5.0.11 |
| Type: | Improvement | Priority: | Low |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The checks done by DOMNotificationRouter assume the listener instance can become null, which it cannot. There is a separate knob, available in AbstractRegistration to indicate whether the registration was closed. This is not critical, as the registration is removed, but it may be observing notifications while it is being unregistered. |