Fix nullpointer on empty message

This commit is contained in:
jeffcheasey88 2025-01-29 11:08:47 +01:00
parent 2d03ccbe3e
commit a78723825b

View file

@ -28,6 +28,7 @@ public class EventSSE{
locker.init(key);
try {
while(true){
locker.lock(key);
GroupMessage message = locker.getValue(key);
if(message.getGroup() == null || message.getGroup().equals(group)){
JsonMap send = new JsonMap();
@ -35,7 +36,6 @@ public class EventSSE{
writer.write(send.toString()+"\n");
writer.flush();
}
locker.lock(key);
}
}catch(Exception e){
e.printStackTrace();