Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
schwerdf opened this issue Nov 3, 2020 · 1 comment · Fixed by #2501
Closed

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

schwerdf opened this issue Nov 3, 2020 · 1 comment · Fixed by #2501
Assignees
Milestone

Comments

@schwerdf
Copy link
Contributor

schwerdf commented Nov 3, 2020

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

@lwrage
Copy link
Contributor

lwrage commented Nov 4, 2020

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

@lwrage lwrage self-assigned this Nov 4, 2020
@lwrage lwrage added this to the 2.9.1 milestone Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants