Potential bug in WBS

0 votes
asked May 16, 2023 in Bug by LeHoff (120 points)

Hi,

After some painful debugging it seems that arrows to/from the root node in a WBS diagram does not work - see below.

Cheers,

Torben

@startwbs
<style>
.foo {
LineColor #00FF00;
}
</style>
* "Test" as t0
** A topic
*** "common" as c1
*** "common2" as c2
** "Another topic" as t2
t2 -> c1 <<foo>>
t2 ..> c2 #blue
t2 ..> t0
@endwbs
Error line 14 in file: test.puml
Some diagram description contains errors
commented May 16, 2023 by The-Lu (64,340 points)

Yes, there are several issues:

  • How to link to the root node?
  • How to link to a node themself?

@PlantUML team, here are some minimal issue (observed on V1.2023.8beta1) examples:

How to link to the root node?

@startwbs
* "Root" as r
** "A topic" as t1
** "Another topic" as t2
t1 ..> r
@endwbs

How to link to a node them-self?

@startwbs
* "Root" as r
** "A topic" as t1
** "Another topic" as t2
t1 ..> t1
@endwbs
We observed:
java.lang.NullPointerException
at net.sourceforge.plantuml.klimt.geom.XLine2D.line(XLine2D.java:23)
at net.sourceforge.plantuml.wbs.WBSLink.drawU(WBSLink.java:89)
at net.sourceforge.plantuml.wbs.WBSDiagram.drawMe(WBSDiagram.java:125)
at net.sourceforge.plantuml.wbs.WBSDiagram.access$0(WBSDiagram.java:112)
at net.sourceforge.plantuml.wbs.WBSDiagram$1.drawU(WBSDiagram.java:103)
at net.atmp.ImageBuilder.writeImageInternal(ImageBuilder.java:306)
...
Awaiting correction, (Thanks to PlantUML team)wink
Regards.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...