aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-23 12:55:51 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-23 12:55:51 +0530
commit5c7797aeec86fa06aa1a128f57eaf596e0fe482d (patch)
tree1cc52c805f0e8dbb4b8d85d261c978bb87724293 /main
parent8807089b715c610b54f50d2b59d11bea628bf984 (diff)
Ignore null on console
Issue-ID: CLI-104 Change-Id: I8fbe6c64355fbd27ef87c2c86ef6b5e8498e99a4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/org/onap/cli/main/OnapCli.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java
index e70c7186..3ba75711 100644
--- a/main/src/main/java/org/onap/cli/main/OnapCli.java
+++ b/main/src/main/java/org/onap/cli/main/OnapCli.java
@@ -86,7 +86,7 @@ public class OnapCli {
}
private void print(Throwable throwable) {
- this.print(throwable.getMessage());
+ this.print(throwable.getMessage() != null ? throwable.getMessage() : "");
LOG.error(throwable.getMessage(), throwable);
}