Satish K
Committed by Gerrit Code Review

Null pointer Deferenced on Exception Flow

Change-Id: Ibd58f19c2091249448a4ba826134f0089a88ac01
...@@ -72,7 +72,9 @@ public class NetconfOperation { ...@@ -72,7 +72,9 @@ public class NetconfOperation {
72 log.error("Unable to send Hello Message to the device: ", e); 72 log.error("Unable to send Hello Message to the device: ", e);
73 } finally { 73 } finally {
74 log.debug("Closing the session after successful execution"); 74 log.debug("Closing the session after successful execution");
75 - ssh.close(); 75 + if (ssh != null) {
76 + ssh.close();
77 + }
76 } 78 }
77 } 79 }
78 80
......