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

NPE at info.magnolia.cms.util.LinkUtil

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.3.8
    • None
    • core

      I have configured my app to show as preview image an asset linked image. But if the dam link is not set, a NullPointerException will be thrown. Reason is that the fingerprint enhancement in the provider can not handle null values.

      15-02-06 12:26:07 WARN  AUTHOR[http-bio-8001-exec-10]info.magnolia.event.SimpleEventBus: Exception caught when dispatching a class info.magnolia.ui.workbench.event.SelectionChangedEvent event with class info.magnolia.ui.contentapp.browser.BrowserPresenter$2 eventHandler.
      java.lang.NullPointerException
              at info.magnolia.cms.util.LinkUtil.addFingerprintToLink(LinkUtil.java:65)
              at info.magnolia.dam.app.ui.imageprovider.DamLinkImageProvider.getGeneratorImagePath(DamLinkImageProvider.java:105)
              at info.magnolia.dam.app.ui.imageprovider.DamLinkImageProvider.getThumbnailResource(DamLinkImageProvider.java:133)
              at info.magnolia.dam.app.ui.imageprovider.DamLinkImageProvider.getThumbnailResource(DamLinkImageProvider.java:124)
              at info.magnolia.ui.contentapp.browser.BrowserPresenter.getPreviewImageForId(BrowserPresenter.java:285)
              at info.magnolia.ui.contentapp.browser.BrowserPresenter.refreshActionbarPreviewImage(BrowserPresenter.java:239)
              at info.magnolia.ui.contentapp.browser.BrowserPresenter.access$200(BrowserPresenter.java:91)
      

        Acceptance criteria

              fgrilli Federico Grilli
              frank.sommer Frank Sommer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD