Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1425

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Outdated
    • Minor
    • None
    • 3.0.1
    • workflow
    • 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

        Attachments

          Activity

            People

              ochytil Ondrej Chytil
              hpaluch Henryk Paluch
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD