Fixed - NPE in CommandDecoder #1764

pull/1827/head
Nikita Koksharov 6 years ago
parent 1a08db75b7
commit bdb5e1cf43

@ -487,6 +487,9 @@ public class CommandDecoder extends ReplayingDecoder<State> {
Decoder<Object> decoder = data.getCommand().getReplayDecoder(); Decoder<Object> decoder = data.getCommand().getReplayDecoder();
if (decoder == null) { if (decoder == null) {
if (data.getCodec() == null) {
return StringCodec.INSTANCE.getValueDecoder();
}
if (data.getCommand().getOutParamType() == ValueType.MAP) { if (data.getCommand().getOutParamType() == ValueType.MAP) {
if (parts != null && parts.size() % 2 != 0) { if (parts != null && parts.size() % 2 != 0) {
return data.getCodec().getMapValueDecoder(); return data.getCodec().getMapValueDecoder();

Loading…
Cancel
Save