Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1991

Potential NPE in EjbReferenceResolverBase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EJB3_1 1.0.2
    • None
    • common, core
    • None
    • jboss-ejb3-core:1.2.1 jboss-ejb3-common:1.0.2

      See JBAS-7631.

      The org.jboss.ejb3.common.resolvers.spi.EjbReferenceResolverBase#getMatch(EjbReference reference, JBossMetaData metadata, ClassLoader cl) cannot handle null metadata. Rightly so. The code calling this method (for ex: org.jboss.ejb3.core.resolvers.ScopedEJBReferenceResolver#find(DeploymentUnit du, EjbReference reference)) must do a null check on the metadata being passed. Also update the javadoc of the EjbReferenceResolverBase#getMatch method to explicitly mention this.

              jaikiran Jaikiran Pai (Inactive)
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: