From e616cc0daeea87636af822880645cc3e89fa9df5 Mon Sep 17 00:00:00 2001
From: Peter Major <peter.major@forgerock.com>
Date: Mon, 05 Oct 2015 09:52:49 +0000
Subject: [PATCH] Remove extraneous empty line from command output

---
 opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java b/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
index acdc829..28cafe9 100644
--- a/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
+++ b/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
@@ -22,7 +22,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
- *      Portions copyright 2014-2015 ForgeRock AS
+ *      Portions copyright 2014-2015 ForgeRock AS.
  */
 package com.forgerock.opendj.cli;
 
@@ -610,7 +610,7 @@
      *            The message to print.
      */
     public static void printWrappedText(final PrintStream stream, final String message) {
-        if (stream != null && message != null) {
+        if (stream != null && message != null && !message.isEmpty()) {
             stream.println(wrapText(message, MAX_LINE_WIDTH));
         }
     }

--
Gitblit v1.10.0