Excerpt-Include+ can't be added when the 'Remove Surrounding Panel' option is selected

Description

Steps to reproduce

  1. Open a dialog for excerpt-include+ macro.

  2. Check the option Remove Surrounding Panel, select a page with an excerpt and click Insert

Expected behaviour

excerpt-include+ macro is added

Actual behaviour

The macro is not added, there is no error in the ui but an exception in the logs:

java.lang.NullPointerException: Cannot invoke "String.replace(java.lang.CharSequence, java.lang.CharSequence)" because "v" is null at com.atlassian.confluence.tinymceplugin.rest.MacroResource.lambda$replaceParamNewlinesWithCharacterEntity$1(MacroResource.java:354)

Workaround

Don’t check the option Remove Surrounding Panel.

Environment

None

Activity

Show:
Unresolved

Details

Assignee

Reporter

Deployment

Data Center

Fix versions

Backbone Issue Sync

Created July 16, 2024 at 8:03 AM
Updated July 16, 2024 at 8:32 AM