plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.66k stars 878 forks source link

Prevent IndexOutOfBoundsException in equation rendering by checking non-empty 'texsymbol' strings #1705

Closed ouss1002 closed 2 months ago

ouss1002 commented 2 months ago

This commit introduces a check before accessing the first character of 'texsymbol' strings in equation rendering, preventing IndexOutOfBoundsException when custom functions names are used which can lead to an empty string. This change ensures that equations with custom variable names ending with standard function strings are handled gracefully without errors.

Fixes #1704 Closes #1704

The-Lum commented 2 months ago

See remark on https://github.com/plantuml/plantuml/issues/1704#issuecomment-1976375860

Regards, Th.