The KeyDispatchCodec assumes that a decoder can never be null when received as such it causes an npe when trying to use it. This PR changes it so that the dispatch methods on the Codec class now check if the Codec returned is null and returns an appropriate DataResult error and the decoder call in KeyDispatchCodec gives a generic DataResult error
The KeyDispatchCodec assumes that a decoder can never be null when received as such it causes an npe when trying to use it. This PR changes it so that the dispatch methods on the Codec class now check if the Codec returned is null and returns an appropriate DataResult error and the decoder call in KeyDispatchCodec gives a generic DataResult error