mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Merge pull request #319 from justlive1/master
fixed netInterface NullPointerException
This commit is contained in:
commit
1267c36ab7
@ -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