NPE thrown from AbstractInjectable if depend producer returns null
------------------------------------------------------------------
Key: OWB-381
URL: https://issues.apache.org/jira/browse/OWB-381
Project: OpenWebBeans
Issue Type: Bug
Components: Injection and Lookup
Affects Versions: M4
Reporter: Joe Bergmark
Assignee: Joe Bergmark
Fix For: 1.0.0
According to the spec, Dependent scoped producer beans can return null values,
however this leads to a NPE in OWB while checking if the return is serializable.
Stack below:
at
org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:132)
at
org.apache.webbeans.inject.InjectableMethods.doInjection(InjectableMethods.java:112)
at
org.apache.webbeans.component.ProducerMethodBean.createDefaultInstance(ProducerMethodBean.java:182)
Should be a simple fix of checking for null before calling injected.getClass.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.