[
https://issues.apache.org/jira/browse/OWB-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Bergmark resolved OWB-381.
------------------------------
Resolution: Fixed
> NPE thrown from AbstractInjectable if dependent 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-CR1
>
>
> 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:
> Caused by: java.lang.NullPointerException
> 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.