NO-JIRA fix possible STOMP NPE

This commit is contained in:
Justin Bertram 2017-02-21 09:08:13 -06:00 committed by Clebert Suconic
parent dfdc4ff750
commit b7d7d134eb
1 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,10 @@ public class StompFrame {
}
public String encode(String str) {
if (str == null) {
return "";
}
int len = str.length();
char[] buffer = new char[2 * len];