Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

getHardwareAddress() returns null on failure

  • Loading branch information...
commit 17235ac0d1240497df1cdcb3cb0a6c6a05ff1c5d 1 parent 27f16ad
@bubbleguuum bubbleguuum authored
View
5 core/src/main/java/org/fourthline/cling/transport/impl/NetworkAddressFactoryImpl.java
@@ -130,8 +130,9 @@ public int getStreamListenPort() {
try {
NetworkInterface iface = NetworkInterface.getByInetAddress(inetAddress);
return iface != null ? iface.getHardwareAddress() : null;
- } catch (SocketException ex) {
- throw new RuntimeException(ex);
+ } catch (Throwable ex) {
+ // seen on Win32: java.lang.Error: IP Helper Library GetIpAddrTable function failed
+ return null;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.