Skip to content

Annex parser throws exception on BA block beginning with LF. #2497

Description

@schwerdf

Summary

When opening the attached model file in OSATE, the text-editor window appears as a blank screen with the words, "String index out of range: -1".

The debugger reveals that the cause of this is a StringIndexOutOfBoundsException rising from this line, when parsing a block in which the first character is a LF and endOfLine is thus equal to 0.

Model file (attached rather than pasted, to ensure transmission character-for-character):
BAParserBug.tar.gz

Environment

  • OSATE Version: 2.9.1
  • Operating System: Windows 10 and macOS 14

Tag: @smithdtyler

Activity

  1. lwrage commented on Nov 4, 2020

    @lwrage
    Contributor

    This happens only if the BA annex has errors other than syntax errors.

  2. self-assigned this
    on Nov 4, 2020
  3. added this to the 2.9.1 milestone on Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions