OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000073OMNeT++IDE / documentation generatorpublic2009-06-04 14:532009-06-08 11:09
Reporterandras 
Assigned Tolevy 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version4.1 
Summary0000073: neddoc crash if comment starts with //@titlepage
DescriptionIf a file comment starts with //@titlepage (i.e. no blank "//" before it), neddoc crashes with StringIndexOutOfBoundsException.

Log:
[...] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(Unknown Source)
    at org.omnetpp.neddoc.DocumentationGenerator$15.run(DocumentationGenerator.java:1001)
    at org.omnetpp.neddoc.DocumentationGenerator.withGeneratingNavigationMenuContainer(DocumentationGenerator.java:895)
    at org.omnetpp.neddoc.DocumentationGenerator.generateSelectedTopics(DocumentationGenerator.java:936)
    at org.omnetpp.neddoc.DocumentationGenerator$13.run(DocumentationGenerator.java:839)
    at org.omnetpp.neddoc.DocumentationGenerator.withGeneratingHTMLFile(DocumentationGenerator.java:2025)
    at org.omnetpp.neddoc.DocumentationGenerator.generateNavigationTree(DocumentationGenerator.java:834)
    at org.omnetpp.neddoc.DocumentationGenerator$1.run(DocumentationGenerator.java:258)
    ... 1 more

Workaround: add a "//" line at the top of the comment
Steps To Reproduce1. Create New OMNeT++ Project, TicToc with src and simulations folders
2. Edit src/package.ned: insert the following at the top of the file:

>>>>>>
// @titlepage
// blah blah
//

<<<<<<

3. Project -> Generate NED documentation --> error.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2009-06-04 14:53 andras New Issue
2009-06-08 11:03 levy Assigned To => levy
2009-06-08 11:09 levy Status new => resolved
2009-06-08 11:09 levy Fixed in Version => 4.1
2009-06-08 11:09 levy Resolution open => fixed


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker