Ensure that PlantUML does not crash when EmbeddedDiagram meets wrap_width.

0 votes
asked Jul 20, 2021 in Bug by F.

Currently (with PlantUML 1.2021.7), PlantUML crashes with this code:

@startuml

'If you uncomment this line, then the UnsupportedOperationException on EmbeddedDiagram$Draw.splitInTwo() does not happen
skinparam wrap_width 150

left to right direction

actor User

User --> (1. select template)
User --> (2. write uml diagram)

note right of User
{{
    skinparam wrap_width 150
    start

    while (count < max?)
      :count = count + increment;
    endwhile

    stop
}}
end note

@enduml


It is expected that PlantUML should not crash.

 

1 Answer

0 votes
answered Jul 27, 2021 by plantuml (295,000 points)

Many thanks for the report.

This has been fixed on the online server.

You can download last beta here http://beta.plantuml.net/plantuml.jar

...