NO-JIRA fix possible STOMP NPE
This commit is contained in:
parent
dfdc4ff750
commit
b7d7d134eb
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue