Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-450

NullPointerException in DependentScopedBeanInterceptorHandler when it has a NullCreationalContext (normally from a EE component).

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-alpha-2
    • 1.0.0
    • Core
    • None

    Description

      DependentScopedBeanInterceptorHandler throws a NullPointerException in the constructor if the creational context passed in returns null for getBean(). I believe when EE components create a null creational context getBean() will return null. Section 11.3.3 of the CDI spec talks about passing in a null for non-contextual objects.

      A quick fix will be to check for null before trying to compare the ccImpl.getBean() to the bean passed into the constructor

      Attachments

        Activity

          People

            bergmark Joseph E Bergmark
            bergmark Joseph E Bergmark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: