You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Thomas Rausch (JIRA)" <ji...@apache.org> on 2017/04/24 13:05:04 UTC
[jira] [Updated] (TOMEE-2037) Possible NPE by call in Injector
[ https://issues.apache.org/jira/browse/TOMEE-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Rausch updated TOMEE-2037:
---------------------------------
Description:
in {{org.apache.openejb.Injector}}, the method {{public static <T> T inject(final T object)}} calls {{cdiInjections(null, object)}} (line 59 in 7.0.3), which will immediately cause a NPE in {{private static <T> void cdiInjections(final BeanContext context, final T object)}} in the first statement {{ if (context.getWebBeansContext() == null) {
}} (because {{context}} is null)
was:
in `org.apache.openejb.Injector`, the method `public static <T> T inject(final T object)` calls `cdiInjections(null, object)` (line 59 in 7.0.3), which will immediately cause a NPE in `private static <T> void cdiInjections(final BeanContext context, final T object)` in the first statement ` if (context.getWebBeansContext() == null) {
` (because `context` is null)
> Possible NPE by call in Injector
> --------------------------------
>
> Key: TOMEE-2037
> URL: https://issues.apache.org/jira/browse/TOMEE-2037
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Core Server
> Affects Versions: 7.0.3
> Reporter: Thomas Rausch
>
> in {{org.apache.openejb.Injector}}, the method {{public static <T> T inject(final T object)}} calls {{cdiInjections(null, object)}} (line 59 in 7.0.3), which will immediately cause a NPE in {{private static <T> void cdiInjections(final BeanContext context, final T object)}} in the first statement {{ if (context.getWebBeansContext() == null) {
> }} (because {{context}} is null)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)