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] [Created] (TOMEE-2037) Possible NPE by call in Injector
Date Mon, 24 Apr 2017 13:04:04 GMT
Thomas Rausch created TOMEE-2037:
------------------------------------

             Summary: 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