[
http://jira.magnolia-cms.com/browse/BLOSSOM-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28986#action_28986
]
Tobias Mattsson commented on BLOSSOM-5:
---------------------------------------
Just out of curiosity, what kind of bean did you have this problem with? I'm
guessing a FactoryBean that didn't know the type in advance.
> 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
> Time Spent: 0.06d
> Remaining Estimate: 0d
>
> 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: <[email protected]>
----------------------------------------------------------------