Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
None
Description
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)
Checklists
Acceptance criteria