ARTEMIS-709 Possible NPE on UUIDGenerator.getAllNetworkInterfaces()
This commit is contained in:
parent
63172e7d36
commit
d5eaccf3ba
|
@ -247,6 +247,10 @@ public final class UUIDGenerator {
|
|||
try {
|
||||
networkInterfaces = NetworkInterface.getNetworkInterfaces();
|
||||
|
||||
if (networkInterfaces == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
List<NetworkInterface> ifaces = new ArrayList<>();
|
||||
while (networkInterfaces.hasMoreElements()) {
|
||||
ifaces.add(networkInterfaces.nextElement());
|
||||
|
|
Loading…
Reference in New Issue