NetworkInterface nic = NicUtil.getNetworkInterface(name); byte[] hwAddr = nic.getHardwareAddress(); if( (hwAddr != null) && (hwAddr.length > 0) ) {
NetworkInterface nic = NicUtil.getNetworkInterface(name); byte[] hwAddr = nic.getHardwareAddress(); if( (hwAddr != null) && (hwAddr.length > 0) ) {
nic = getNetworkInterface(name); } catch(Exception e) {/* swallow and try fallback */} if(nic != null) {
nic = getNetworkInterface(name); } catch(Exception e) {/* swallow and try fallback */} if(nic != null) {