Satish K
Committed by Gerrit Code Review

Null pointer Deferenced on Exception Flow

Change-Id: Ibd58f19c2091249448a4ba826134f0089a88ac01
......@@ -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();
}
}
}
......