kiniry / Mobius

4 stars 8 forks source link

Old HTML bon documentation eclipse plugin exception #660

Open atiti opened 11 years ago

atiti commented 11 years ago

When the above code is executed from command line things work great, but when we choose BONc - Generate old BON HTML (from eclipse plugin) it raises a NullPointerException {{{ system_chart NESTED_BUG indexing author: "Chris"; explanation "Stretching bon eclipse plugin" cluster FOO description "my first cluster" end

cluster_chart FOO cluster FOO1 description "nested cluster" end

cluster_chart FOO1 class MYFOO description "end class" end

class_chart MYFOO query "whats my foo?" end }}}

atiti commented 11 years ago

From: fintan (GH: fintanf) Date: Mon Mar 22 13:13:00 2010

Attaching stack trace of the error:

{{{ java.lang.NullPointerException at ie.ucd.bon.printer.HTMLLinkGenerator.generateLinks(HTMLLinkGenerator.java:29) at ie.ucd.bon.printer.XHTMLPrintVisitor.getAllOutputAsString(XHTMLPrintVisitor.java:57) at ie.ucd.bon.Printer.printToStream(Printer.java:160) at ie.ucd.bon.Printer.printSingleFile(Printer.java:209) at ie.ucd.bon.Printer.print(Printer.java:245) at ie.ucd.bon.API.print(API.java:137) at ie.ucd.bon.plugin.ui.actions.GenerateOldBONDocumentationAction$1.run(GenerateOldBONDocumentationAction.java:47) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) }}}

atiti commented 11 years ago

From: fintan (GH: fintanf) Date: Wed Mar 24 02:40:56 2010

The issue was with the auto-generation of a class dictionary. This is turned on be default in Eclipse and off by default on the command line, hence the discrepancy.

The issue is now fixed in svn head, and will be included in the next release.