[MAGNOLIA-6072] NPE at info.magnolia.cms.util.LinkUtil Created: 06/Feb/15 Updated: 01/Jul/15 Resolved: 11/Feb/15 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.8 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Frank Sommer | Assignee: | Federico Grilli |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| 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 |
|
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)
|