Skip to content

Commit

Permalink
fixed netInterface NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
justlive1 committed Jan 25, 2019
1 parent a301c63 commit d3f98b6
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 d3f98b6

Please sign in to comment.