Fixed incorrect null check. 29/4629/1
authorTony Tkacik <ttkacik@cisco.com>
Thu, 23 Jan 2014 09:37:30 +0000 (10:37 +0100)
committerTony Tkacik <ttkacik@cisco.com>
Thu, 23 Jan 2014 09:37:30 +0000 (10:37 +0100)
Change-Id: I8acb8b1826365bcadccb1b685088a88b46a42c33
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/SchemaServiceImpl.java

index 428521b72f28bfbb719a3bd0fe4f214e5766b46f..d8750fcb759ebbae8e0b3bbdb429524e2eb68f50 100644 (file)
@@ -200,7 +200,7 @@ public class SchemaServiceImpl implements //
 
         SchemaServiceListener listener = context.getService(reference);
         SchemaContext _ctxContext = getGlobalContext();
-        if (getContext() != null) {
+        if (_ctxContext != null) {
             listener.onGlobalContextUpdated(_ctxContext);
         }
         return listener;