Details
-
Task
-
Resolution: Not a Bug
-
Major
-
None
-
5.10.6.Final
-
None
-
Undefined
Description
There is a potential `NullPointerException` to be thrown in the class LRACDIExtension (https://github.com/jbosstm/narayana/blob/5.10.6.Final/rts/lra/lra-proxy/api/src/main/java/io/narayana/lra/client/internal/proxy/nonjaxrs/LRACDIExtension.java#L108) as there is used the call `Class#getClassLoader()`.
The trouble could be that the class loader may be returned as `null` if the class was loaded by bootstrap class loader, see https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html#getClassLoader--
Returns the class loader for the class.
Some implementations may use null to represent the bootstrap class loader.
This method will return null in such implementations if this class was loaded by the bootstrap class loader.