Skip to content

Commit

Permalink
Merge pull request alibaba#319 from justlive1/master
Browse files Browse the repository at this point in the history
fixed netInterface NullPointerException
  • Loading branch information
flystar32 authored Jan 28, 2019
2 parents a301c63 + d3f98b6 commit 1267c36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void init() throws SocketException {
else {
NetworkInterface netInterface = NetworkInterface
.getByName(networkInterface);
if (null == networkInterface) {
if (null == netInterface) {
throw new IllegalArgumentException(
"no such interface " + networkInterface);
}
Expand Down

0 comments on commit 1267c36

Please sign in to comment.