Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2037

Possible NPE by call in Injector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.3
    • 7.0.4
    • TomEE Core Server
    • None

    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)

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            thrau Thomas Rausch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: