mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-03 07:49:24 +00:00
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…
x
Reference in New Issue
Block a user