tomee-commits mailing list archives

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

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

Mime
View raw message