aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/providers/netconf/flow
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/onos/providers/netconf/flow')
-rw-r--r--framework/src/onos/providers/netconf/flow/src/main/java/org/onosproject/provider/netconf/flow/impl/NetconfOperation.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/src/onos/providers/netconf/flow/src/main/java/org/onosproject/provider/netconf/flow/impl/NetconfOperation.java b/framework/src/onos/providers/netconf/flow/src/main/java/org/onosproject/provider/netconf/flow/impl/NetconfOperation.java
index d03e75ac..4e5a2752 100644
--- a/framework/src/onos/providers/netconf/flow/src/main/java/org/onosproject/provider/netconf/flow/impl/NetconfOperation.java
+++ b/framework/src/onos/providers/netconf/flow/src/main/java/org/onosproject/provider/netconf/flow/impl/NetconfOperation.java
@@ -72,7 +72,9 @@ public class NetconfOperation {
log.error("Unable to send Hello Message to the device: ", e);
} finally {
log.debug("Closing the session after successful execution");
- ssh.close();
+ if (ssh != null) {
+ ssh.close();
+ }
}
}