netty5/codec-dns/src
Trustin Lee 923a0e71ac Raise a meaningful exception instead of NPE
Motivation:

When decoding the NAME field in a DNS Resource Record, DnsResponseDecoder
can raise a NullPointerException if the NAME field contains a loop.

Modification:

Instead of raising an NPE, raise CorruptedFrameException so that the
exception itself has meaning.

Result:

Less confusing when a malformed DNS RR is received
2014-07-21 16:51:38 -07:00
..
main/java/io/netty/handler/codec/dns Raise a meaningful exception instead of NPE 2014-07-21 16:51:38 -07:00
test/java/io/netty/handler/codec/dns Raise a meaningful exception instead of NPE 2014-07-21 16:51:38 -07:00