[ 
http://jira.magnolia.info/browse/MAGNOLIA-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fabrizio Giustina resolved MAGNOLIA-2176.
-----------------------------------------

    Resolution: Fixed
      Assignee: Fabrizio Giustina  (was: Philipp Bracher)

fixed, unit test added

> NPE in Content2Bean in case of indexed properties
> -------------------------------------------------
>
>                 Key: MAGNOLIA-2176
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-2176
>             Project: Magnolia
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.5.8
>            Reporter: Fabrizio Giustina
>            Assignee: Fabrizio Giustina
>             Fix For: 3.6
>
>
> Trying to use Content2Bean on any class that declares an indexed property 
> causes the following:
> java.lang.NullPointerException
>       at info.magnolia.cms.util.ClassUtil.isSubClass(ClassUtil.java:100)
>       at 
> info.magnolia.content2bean.impl.TypeMappingImpl.getTypeDescriptor(TypeMappingImpl.java:170)
>       at 
> info.magnolia.content2bean.impl.TypeMappingImpl.getPropertyTypeDescriptor(TypeMappingImpl.java:127)
>       at 
> info.magnolia.content2bean.TypeDescriptor.getPropertyDescriptors(TypeDescriptor.java:117)
>       at 
> info.magnolia.content2bean.TypeDescriptor.getPropertyTypeDescriptor(TypeDescriptor.java:100)
>       at 
> info.magnolia.content2bean.impl.Content2BeanTransformerImpl.resolveType(Content2BeanTransformerImpl.java:115)
>       at 
> info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:84)
>       at 
> info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toMap(Content2BeanProcessorImpl.java:167)
>       at 
> info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:99)
>       at 
> info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:75)
>       at 
> info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:152)
>       at 
> info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:145)

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

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to