Skip to content

Commit d9b70a1

Browse files
committed
Fix parse empty stomp message 2
1 parent d8e329f commit d9b70a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/ua/naiksoftware/stomp/client/StompMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public String compile() {
6565
}
6666

6767
public static StompMessage from(String data) {
68-
if (TextUtils.isEmpty(data)) {
68+
if (data == null || data.trim().isEmpty()) {
6969
return new StompMessage(StompCommand.UNKNOWN, null, data);
7070
}
7171
Scanner reader = new Scanner(new StringReader(data));

0 commit comments

Comments
 (0)