fix deserialization error
This commit is contained in:
parent
8fbc693a99
commit
c0eebf6bba
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user