Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix AbstractCommonSubscriber close method
[netconf.git]
/
restconf
/
restconf-nb-bierman02
/
src
/
main
/
java
/
org
/
opendaylight
/
netconf
/
sal
/
streams
/
listeners
/
AbstractCommonSubscriber.java
diff --git
a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/listeners/AbstractCommonSubscriber.java
b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/listeners/AbstractCommonSubscriber.java
index 41503253bc61bb2f75fe07f0ea0ae10b6dfbc94d..2a7ba619c59a543fcedd6815912b458977396941 100644
(file)
--- a/
restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/listeners/AbstractCommonSubscriber.java
+++ b/
restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/streams/listeners/AbstractCommonSubscriber.java
@@
-51,8
+51,11
@@
abstract class AbstractCommonSubscriber extends AbstractQueryParams implements B
@Override
public final void close() {
- this.registration.close();
- this.registration = null;
+ if (registration != null) {
+ this.registration.close();
+ this.registration = null;
+ }
+
unregister();
}