Custom emojis lead to an error with Confluence 8.4.0
Description
During the testing for compatibility with Confluence 8.4.0 we encountered a bug where displaying the new custom emoji feature from Confluence is not possible. As soon as a custom emoji is added, the Viewport throws an error once you navigate to the page that contains the emoji.
Steps to reproduce:
Create a custom emoji.
Use it on a page
Click on the icon to display the Viewport for that page
There is an error message:
Error in Help Center Theme
Failed to render template '/page.vm'. Invocation of method 'getContent' in class com.k15t.scroll.viewport.api.placeholder.ScrollPagePlaceholder threw exception java.lang.NullPointerException at /templates/macros/pageContent.vm[line 11, column 16]
Error in WebHelp Theme
Failed to render template '/page.vm'. Invocation of method 'template' in class com.k15t.scroll.viewport.api.placeholder.IncludePlaceholder threw exception com.k15t.scroll.runtime.confluence.content.transform.render.RenderingException: Failed to render template '/include/include-content.vm'. at /page.vm[line 25, column 14] Failed to render template '/include/include-content.vm'. Invocation of method 'getContent' in class com.k15t.scroll.viewport.api.placeholder.ScrollPagePlaceholder threw exception java.lang.NullPointerException at /include/include-content.vm[line 16, column 19]
Expected result: The custom emoji is shown on the Viewport.
Actual result: The custom emoji causes a system error.
During the testing for compatibility with Confluence 8.4.0 we encountered a bug where displaying the new custom emoji feature from Confluence is not possible. As soon as a custom emoji is added, the Viewport throws an error once you navigate to the page that contains the emoji.
Steps to reproduce:
Create a custom emoji.
Use it on a page
Click on the icon to display the Viewport for that page
There is an error message:
Error in Help Center Theme
Failed to render template '/page.vm'.
Invocation of method 'getContent' in class com.k15t.scroll.viewport.api.placeholder.ScrollPagePlaceholder threw exception java.lang.NullPointerException at /templates/macros/pageContent.vm[line 11, column 16]
Error in WebHelp Theme
Failed to render template '/page.vm'.
Invocation of method 'template' in class com.k15t.scroll.viewport.api.placeholder.IncludePlaceholder threw exception com.k15t.scroll.runtime.confluence.content.transform.render.RenderingException: Failed to render template '/include/include-content.vm'. at /page.vm[line 25, column 14]
Failed to render template '/include/include-content.vm'.
Invocation of method 'getContent' in class com.k15t.scroll.viewport.api.placeholder.ScrollPagePlaceholder threw exception java.lang.NullPointerException at /include/include-content.vm[line 16, column 19]
Expected result:
The custom emoji is shown on the Viewport.
Actual result:
The custom emoji causes a system error.