This closes #744
This commit is contained in:
commit
6690da5b81
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue