There is possibility of NPE on class UUIDGenerator in method getAllNetworkInterfaces().
private static List<NetworkInterface> getAllNetworkInterfaces() { Enumeration<NetworkInterface> networkInterfaces; try { networkInterfaces = NetworkInterface.getNetworkInterfaces(); List<NetworkInterface> ifaces = new ArrayList<>(); while (networkInterfaces.hasMoreElements()) { ifaces.add(networkInterfaces.nextElement()); } return ifaces; } catch (SocketException e) { return Collections.emptyList(); } }
In case there are none network interfaces found on machine, method NetworkInterface.getNetworkInterfaces() returns null which can cause NPE in while cycle condition.
- is cloned by
-
JBEAP-5829 (7.0.z) ARTEMIS-709 - Possible NPE on UUIDGenerator.getAllNetworkInterfaces()
- Verified
- is incorporated by
-
JBEAP-5830 (7.1.0) Upgrade Artemis from 1.1.0.SP18 to 1.4.0
- Verified
- cloned to
-
ARTEMIS-709 Loading...