On Windows if all network cards are removed then NetworkInterface.getNetworkInterfaces will throw an ArrayIndexOutOfBoundException. The correct behaviour is to return null.
getNetworkInterfaces throws ArrayIndexOutOfRangeException if NICs are removed
On Windows if all network cards are removed then NetworkInterface.getNetworkInterfaces will throw an ArrayIndexOutOfBoundException. The correct behaviour is to return null.