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:
parent
a301c63f21
commit
d3f98b66a4
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user