This closes #744

This commit is contained in:
Clebert Suconic 2016-08-31 09:47:57 -04:00
commit 6690da5b81
1 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,10 @@ public final class UUIDGenerator {
try { try {
networkInterfaces = NetworkInterface.getNetworkInterfaces(); networkInterfaces = NetworkInterface.getNetworkInterfaces();
if (networkInterfaces == null) {
return Collections.emptyList();
}
List<NetworkInterface> ifaces = new ArrayList<>(); List<NetworkInterface> ifaces = new ArrayList<>();
while (networkInterfaces.hasMoreElements()) { while (networkInterfaces.hasMoreElements()) {
ifaces.add(networkInterfaces.nextElement()); ifaces.add(networkInterfaces.nextElement());