Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Add check for empty string, fixes #2165
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Dockal <odockal@redhat.com>
  • Loading branch information
odockal committed Mar 2, 2022
1 parent 0005245 commit be8604b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public String getMessage() {
} else {
message = getMessageText(textControl).getText();
}
if(getMessageImage() != null){ //if image is shown TitleAreaDialog adds whitespace before message
if(getMessageImage() != null && !message.isEmpty()) { //if image is shown TitleAreaDialog adds whitespace before message
message = message.substring(1);
}
return message;
Expand Down

0 comments on commit be8604b

Please sign in to comment.