Details
-
Bug
-
Resolution: Outdated
-
Minor
-
None
-
3.0.1
-
None
-
magnolia-3.0.1-bundle.tar.gz, JDK 1.5.0_06, WIn32
Description
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
Checklists
Acceptance criteria