Skip to content

Commit

Permalink
'#1923: Print data only if it is not empty/blank.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Jan 3, 2024
1 parent 78e6390 commit 13705e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ private synchronized void printMessage(PrintWriter out, Message message, boolean
case GROUP_CREATED:
out.println("<div class=\"systemmessage\">"); //$NON-NLS-1$
out.println(Messages.getString("WhatsAppReport.GroupCreated") + " " + name + "</br>");
if (message.getData() != null && !message.getData().isEmpty()) {
if (message.getData() != null && !message.getData().isBlank()) {
out.print(format(message.getData()) + "<br/>"); //$NON-NLS-1$
}
break;
Expand All @@ -482,7 +482,7 @@ private synchronized void printMessage(PrintWriter out, Message message, boolean
out.print(getBestContactName(false, users.get(i), contactsDirectory, account));
}
out.println(".<br>");
if (message.getData() != null) {
if (message.getData() != null && !message.getData().isBlank()) {
out.print(format(message.getData()) + "<br/>"); //$NON-NLS-1$
}
break;
Expand Down

0 comments on commit 13705e6

Please sign in to comment.