netty5/resolver-dns/src
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
..
main/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
test Fix NPE when trying to build a DnsNameResolver with a null resolvedAddressTypes (#8445) 2018-10-30 13:15:16 +01:00