forked fromAsyncHttpClient/async-http-client
- Notifications
You must be signed in to change notification settings - Fork0
Commita0cbc31
committed
Check if DnsCache is null in DnsNameResolver constructor,closeAsyncHttpClient#1328
Motivation:We miss checking if DnsCache is null in DnsNameResolver constructorwhich will later then lead to a NPE. Better fail fast here.Modifications:Check for null and if so throw a NPE.Result:Fail fast.1 parent935aa32 commita0cbc31
File tree
1 file changed
+1
-1
lines changed- netty-bp/resolver-dns/src/main/java/io/netty/resolver/dns
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments
Comments
(0)