netty5/resolver-dns/src/test
Stephane Landelle f4cf674f01 Fix NPE when trying to build a DnsNameResolver with a null resolvedAddressTypes (#8445)
Motivation:

It should be possible to build a DnsNameResolver with a null resolvedAddressTypes, defaulting then to DEFAULT_RESOLVE_ADDRESS_TYPES (see line 309).

Sadly, `preferredAddressType` is then called on line 377 with the original parameter instead of the instance attribute, causing an NPE when it's null.

Modification:

Call preferredAddressType with instance attribuet instead of constructor parameter.

Result:

No more NPE
2018-10-30 13:15:16 +01:00
..
java/io/netty/resolver/dns Fix NPE when trying to build a DnsNameResolver with a null resolvedAddressTypes (#8445) 2018-10-30 13:15:16 +01:00
resources [#4289] Use a mock DNS Server for dns tests. 2015-10-10 20:27:34 +02:00