diff --git a/src/com/limelight/nvstream/NvConnection.java b/src/com/limelight/nvstream/NvConnection.java index d0e9ea6d..164372fd 100644 --- a/src/com/limelight/nvstream/NvConnection.java +++ b/src/com/limelight/nvstream/NvConnection.java @@ -49,7 +49,7 @@ public class NvConnection { * connecting over different interfaces */ if (!iface.isLoopback()) { byte[] macAddress = iface.getHardwareAddress(); - if (macAddress.length == 6) { + if (macAddress != null && macAddress.length == 6) { StringBuilder addrStr = new StringBuilder(); for (int i = 0; i < macAddress.length; i++) { addrStr.append(String.format("%02x", macAddress[i]));