Some name strategies may lack a null check to validate the name parameter, which causes the Diagram macro to break when an invalid name is encountered.
Steps to Reproduce
Create a new page.
Add this macro call: {{diagram /}}
Change the default naming strategy in XWiki to the "Preformatted Names" strategy.
Expected Behavior
The create button / diagram is shown as expected.
Some name strategies may lack a null check to validate the name parameter, which causes the Diagram macro to break when an invalid name is encountered.
Steps to Reproduce
{{diagram /}}
Expected Behavior The create button / diagram is shown as expected.
Actual Behavior The diagram macro breaks