-
Bug
-
Resolution: Done
-
Minor
-
7.0.1.CR2
-
None
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.
- clones
-
JBEAP-5822 (7.1.0) Possible NPE on UUIDGenerator.getAllNetworkInterfaces()
- Verified
- is incorporated by
-
JBEAP-5471 (7.0.z) Upgrade Artemis from 1.1.0.SP18 to 1.1.0.SP19
- Verified