[MAGNOLIA-1425] Deleted Folder (in Documents) cause NPE in Inbox.getIcon() Created: 07/Mar/07  Updated: 15/Jun/10  Resolved: 15/Jun/10

Status: Closed
Project: Magnolia
Component/s: workflow
Affects Version/s: 3.0.1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Henryk Paluch Assignee: Ondrej Chytil
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

magnolia-3.0.1-bundle.tar.gz, JDK 1.5.0_06, WIn32


Attachments: Text File Inbox-icon-npe.patch    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 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



 Comments   
Comment by Ondrej Chytil [ 15/Jun/10 ]

Issue cant be reproduced in 4.3.1. Probably fixed as sideeffect of another change.

Generated at Mon Feb 12 03:26:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.