Deleted Folder (in Documents) cause NPE in Inbox.getIcon()
----------------------------------------------------------

                 Key: MAGNOLIA-1425
                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1425
             Project: Magnolia
          Issue Type: Bug
          Components: workflow
    Affects Versions: 3.0.1
         Environment: magnolia-3.0.1-bundle.tar.gz, JDK 1.5.0_06, WIn32
            Reporter: Henryk Paluch
         Assigned To: Nicolas Modrzyk
            Priority: Minor
         Attachments: Inbox-icon-npe.patch

When Inbox item is later deleted, than Inbox list crashes on 
NullPointerException:
Caused by: java.lang.NullPointerException
        at 
info.magnolia.cms.beans.config.MIMEMapping.getMIMETypeIcon(MIMEMapping.java:216)
        at info.magnolia.module.workflow.inbox.Inbox.getIcon(Inbox.java:178)
        at info.magnolia.module.workflow.inbox.Inbox$2.getValue(Inbox.java:137)
        at 
info.magnolia.cms.gui.controlx.list.ListColumnRenderer.render(ListColumnRenderer.java:32)

How to reproduce:
* Go to "Documents"
* Create new folder 'test'
* Activate that folder
* Verify that this folder is visibile in Inbox
* Go back to "Documents"
* Delete the folder 'test'
* Go to Inbox - it will crash with above NPE

Fix: attached patch to avoid call of MIMEMapping.getMIMETypeIcon() with null 
type


-- 
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://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to