Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

alt does not work -tlatex, with IllegalArgumentException

0 votes

@startuml

a->b: foo

alt true

    a->b: bar1

else false

    a->b: bar2

end

@enduml

 

The above gives the following:

java.lang.IllegalArgumentException

at net.sourceforge.plantuml.tikz.TikzGraphics.setStrokeColor(Unknown Source)

at net.sourceforge.plantuml.ugraphic.tikz.DriverRectangleTikz.draw(Unknown Source)

at net.sourceforge.plantuml.ugraphic.tikz.DriverRectangleTikz.draw(Unknown Source)

at net.sourceforge.plantuml.ugraphic.AbstractUGraphic.draw(Unknown Source)

at net.sourceforge.plantuml.skin.rose.ComponentRoseGroupingElse.drawBackgroundInternalU(Unknown Source)

at net.sourceforge.plantuml.skin.AbstractComponent.drawU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.GroupingGraphicalElementElse.drawInternalU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.GraphicalElement.drawU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawPlaygroundU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawU(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma.createImage(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma.createOne(Unknown Source)

at net.sourceforge.plantuml.sequencediagram.SequenceDiagram.exportDiagramInternal(Unknown Source)

at net.sourceforge.plantuml.UmlDiagram.exportDiagram(Unknown Source)

at net.sourceforge.plantuml.PSystemUtils.exportDiagramsSequence(Unknown Source)

at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(Unknown Source)

at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(Unknown Source)

at net.sourceforge.plantuml.Run.manageFileInternal(Unknown Source)

at net.sourceforge.plantuml.Run.processArgs(Unknown Source)

at net.sourceforge.plantuml.Run.manageAllFiles(Unknown Source)

at net.sourceforge.plantuml.Run.main(Unknown Source)

asked Aug 7, 2014 in bug by anonymous

1 Answer

0 votes
Thanks for the report.
 
Here is a beta version that solves this issue:
 
There is still a drawing bug with the line close to "alt", but at least it does not crash anymore.
We will fix that latter.
 
If you find any other issues with Latex, thanks to post them here!
 
Regards,
 
answered Aug 7, 2014 by plantuml (125,190 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...