You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2017/04/24 13:16:04 UTC

[jira] [Resolved] (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 ]

Romain Manni-Bucau resolved TOMEE-2037.
---------------------------------------
       Resolution: Fixed
         Assignee: Romain Manni-Bucau
    Fix Version/s: 7.0.4

> 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
>            Assignee: Romain Manni-Bucau
>             Fix For: 7.0.4
>
>
> 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)