1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

fixed netInterface NullPointerException

This commit is contained in:
justlive1 2019-01-25 15:33:03 +08:00
parent a301c63f21
commit d3f98b66a4

View File

@ -160,7 +160,7 @@ public class NacosDiscoveryProperties {
else {
NetworkInterface netInterface = NetworkInterface
.getByName(networkInterface);
if (null == networkInterface) {
if (null == netInterface) {
throw new IllegalArgumentException(
"no such interface " + networkInterface);
}