Skip to content

Commit

Permalink
Fix parse empty stomp message 2
Browse files Browse the repository at this point in the history
  • Loading branch information
NaikSoftware committed Nov 1, 2016
1 parent d8e329f commit d9b70a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public String compile() {
}

public static StompMessage from(String data) {
if (TextUtils.isEmpty(data)) {
if (data == null || data.trim().isEmpty()) {
return new StompMessage(StompCommand.UNKNOWN, null, data);
}
Scanner reader = new Scanner(new StringReader(data));
Expand Down

0 comments on commit d9b70a1

Please sign in to comment.