Java nullpointerexcepton in june 30 beta

0 votes
asked Jul 30, 2015 in To be sorted by enilwir (200 points)
edited Jul 30, 2015 by enilwir
Hello,

I have been using the beta presented at the end of

http://plantuml.sourceforge.net/qa/?qa=3558/export-to-tikz-loses-links

thread.

 

and found that one diagram, MWE below compiles in the webinterface:

http://i.imgur.com/QXi3Tt0.png compiles but crashes when compiled locally

@startuml
(*) --> "str"
---> if "[a()?]" then
--> [Yes] if "[ss?]" then
--> [Yes] "str"
if "" then
-->[aa] (*2)
else
-right->[o] "st"
--> (*2)
endif
else
-right-> [No] "r"
endif
else
--> [No] "r"
---->(*)
endif
 @enduml

causes

logger - ERROR - java.lang.NullPointerException
    at net.sourceforge.plantuml.svek.Line.drawU(Line.java:633)
    at net.sourceforge.plantuml.svek.SvekResult.drawU(SvekResult.java:88)
    at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageTOBEMOVED(ImageBuilder.java:131)
    at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageTOBEMOVED(ImageBuilder.java:125)
    at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:136)
    at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:87)
    at net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(CucaDiagram.java:314)
    at net.sourceforge.plantuml.UmlDiagram.exportDiagram(UmlDiagram.java:249)
    at net.sourceforge.plantuml.PSystemUtils.exportDiagramsCuca(PSystemUtils.java:206)
    at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:69)
    at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:130)
    at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:394)
    at net.sourceforge.plantuml.Run.processArgs(Run.java:316)
    at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:291)
    at net.sourceforge.plantuml.Run.main(Run.java:135)
 

with command args (through python scirpt)

java -jar $plantuml.jar plantumlMWE.plantuml -o . -tlatex

also crashes with -tsvg flag.

 

Is there a newer beta/release that contains the latex link functionality that I can try?

using dot - graphviz version 2.26.3 (20100126.1600)

best regards

1 Answer

0 votes
answered Jul 30, 2015 by plantuml (295,000 points)

The crash is probably caused by the version of GraphViz.

Could you try:

@startuml
testdot
@enduml

on both config to check this.

Try also to remove the -right-> arrow (or to use them without label).

...