[webbeans-issues] [JBoss JIRA] Created: (WBRI-223) getting javax.inject.Instance from Manager#getInstanceByType causes NullPointerException

Takeshi Kondo (JIRA) jira-events at lists.jboss.org
Sun Apr 5 12:57:22 EDT 2009


getting javax.inject.Instance from Manager#getInstanceByType causes NullPointerException
----------------------------------------------------------------------------------------

                 Key: WBRI-223
                 URL: https://jira.jboss.org/jira/browse/WBRI-223
             Project: Web Beans
          Issue Type: Bug
            Reporter: Takeshi Kondo


Because ManagerImpl#getInjectionPoint() is null in AbstractFacadeBean#create, following sample code throws NullPointerException.

-- sample code ---

Instance<List> instance = manager.getInstanceByType(new TypeLiteral<Instance<List>>(){}, new ObtainsLiteral());


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list