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

Pete Muir (JIRA) jira-events at lists.jboss.org
Sun Apr 5 14:39:22 EDT 2009


     [ https://jira.jboss.org/jira/browse/WBRI-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir updated WBRI-223:
---------------------------

    Fix Version/s: 1.0.0.PREVIEW
         Priority: Minor  (was: Major)


> 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
>            Priority: Minor
>             Fix For: 1.0.0.PREVIEW
>
>
> 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