[ 
http://jira.magnolia-cms.com/browse/BLOSSOM-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on BLOSSOM-5 started by Tobias Mattsson.

> NullPointerExeption in BlossomDispatcherServlet while detecting 
> DialogFactories
> -------------------------------------------------------------------------------
>
>                 Key: BLOSSOM-5
>                 URL: http://jira.magnolia-cms.com/browse/BLOSSOM-5
>             Project: Magnolia Blossom Module
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Thomas Kalmar
>            Assignee: Tobias Mattsson
>            Priority: Critical
>             Fix For: 1.1.1
>
>   Original Estimate: 0.06d
>  Remaining Estimate: 0.06d
>
> context.getType can be null the following fixes the detectDialogFactories 
> Method
>  private void detectDialogFactories() throws RepositoryException {
>         WebApplicationContext context = getWebApplicationContext();
>         String[] beanDefinitionNames = context.getBeanDefinitionNames();
>         for (String beanDefinitionName : beanDefinitionNames) {
>             Class<?> type = context.getType(beanDefinitionName);
>             if (type!=null && type.isAnnotationPresent(DialogFactory.class)) {
>                 
> BlossomModule.getDialogRegistry().registerDialogFactory(context.getBean(beanDefinitionName));
>             }
>         }
>     }

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

        

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to