Excerpt-Include+ can't be added when the 'Remove Surrounding Panel' option is selected
Description
Environment
None
Activity
Show:
Unresolved
Details
Details
Assignee
Unassigned
UnassignedReporter
Backbone Issue Sync
Backbone Issue SyncDeployment
Data Center
Components
Fix versions
Backbone Issue Sync

Backbone Issue Sync
Created July 16, 2024 at 8:03 AM
Updated July 16, 2024 at 8:32 AM
Steps to reproduce
Open a dialog for excerpt-include+ macro.
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.