aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}