tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TOMEE-2037) Possible NPE by call in Injector
Date Mon, 24 Apr 2017 13:16:04 GMT

     [ 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)

Mime
View raw message