fix deserialization error

This commit is contained in:
bvn13 2022-01-29 03:04:35 +03:00
parent 8fbc693a99
commit c0eebf6bba

View File

@ -46,7 +46,13 @@ public class CommandClientListener extends AbstractClientListener implements Abs
if (line == null || line.length == 0) { if (line == null || line.length == 0) {
continue; continue;
} }
final Object command = SerializationUtils.deserialize(line); final Object command;
try {
command = SerializationUtils.deserialize(line);
} catch (Exception e) {
log.warn("Deserialization exception occurred!", e);
continue;
}
if (command == null) { if (command == null) {
continue; continue;
} }