Recheck fields when cleaning up listeners 70/93470/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 29 Oct 2020 16:51:17 +0000 (17:51 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 29 Oct 2020 16:57:17 +0000 (17:57 +0100)
commit1105cf5bc00628ee6dc2d86dce1ef4225050a5ba
tree0c28f19a44a9dff831494a221be98ae225b34153
parent1c4590ae7e257deb5a64137485a43b150563f2e9
Recheck fields when cleaning up listeners

We may end up in a situation where we trigger multiple times, in
which case we can end up with mutated state and therefore cannot
rely on fields being non-null.

JIRA: YANGTOOLS-1155
Change-Id: I5607843d1e02483faa387a5630f3c4c06a3be62a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/SimpleNamespaceContext.java