Prevent NPE in the SshLog

This NPE can happen when command was destroyed (probably by user
canceling the ssh operation) using CommandFactoryProvider.onDestroy
before it was even logged. In this case we provide meaningful audit
entry instead of not-so-nice NPE with stack trace in the logs.

Change-Id: If15a9475a4d98ade9a263b4ed4dcf5a1dd694731
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
1 file changed