I cant fold mindmaps in visual studio code because blank is not allowed

0 votes
asked Oct 17, 2019 in Wanted features by greenhorn

@startmindmap 

 * g

 ** d

@endmindmap

Error found in diagram test
Error java.lang.NullPointerException 
java.lang.NullPointerException 
at net.sourceforge.plantuml.mindmap.MindMapDiagram$Branch.add(MindMapDiagram.java:217) 
at net.sourceforge.plantuml.mindmap.MindMapDiagram$Branch.access$700(MindMapDiagram.java:197) 
at net.sourceforge.plantuml.mindmap.MindMapDiagram.addIdea(MindMapDiagram.java:194) 
at net.sourceforge.plantuml.mindmap.MindMapDiagram.addIdea(MindMapDiagram.java:177) 
at net.sourceforge.plantuml.mindmap.CommandMindMapTabulation.executeArg(CommandMindMapTabulation.java:64) 
at net.sourceforge.plantuml.mindmap.CommandMindMapTabulation.executeArg(CommandMindMapTabulation.java:46) 
at net.sourceforge.plantuml.command.SingleLineCommand2.execute(SingleLineCommand2.java:149) 
at net.sourceforge.plantuml.command.ProtectedCommand.execute(ProtectedCommand.java:55) 
at net.sourceforge.plantuml.AbstractPSystem.executeCommand(AbstractPSystem.java:124) 
at net.sourceforge.plantuml.command.UmlDiagramFactory.executeFewLines(UmlDiagramFactory.java:128) 
at net.sourceforge.plantuml.command.UmlDiagramFactory.createSystem(UmlDiagramFactory.java:110) 
at net.sourceforge.plantuml.PSystemBuilder.createPSystem(PSystemBuilder.java:124) 
at net.sourceforge.plantuml.BlockUml.getDiagram(BlockUml.java:156) 
at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:150) 
at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:111) 
at net.sourceforge.plantuml.Run.managePipe(Run.java:359) 
at net.sourceforge.plantuml.Run.main(Run.java:166) 
You should send a mail to plantuml@gmail.com or post to http://plantuml.com/qa with this log (V1.2019.09) 
ERROR 

You should send a mail to plantuml@gmail.com or post to http://plantuml.com/qa with this log (V1.2019.09) java.lang.NullPointerException 
Some diagram description contains errors 

1 Answer

0 votes
answered Oct 17, 2019 by plantuml (294,960 points)
You should upgrade to last version.

However, blank is still not allowed : is it a real issue ?
commented Oct 18, 2019 by greenhorn
I think that is a usecase. You have multiple diagrams in a .PUML file, such as multiple mindmaps, sequence diagrams, and state diagrams. For a better overview you can use the folding in Visual Studio Code. This only works not with mindmaps, since here the characters must be in the first column (no blanks allowed).

OK is just usability, but sometimes such things are as serious as real mistakes.
...