Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

StringIndexOutOfBoundsException in BoundaryErrorChecker when BpmnError parameter is no String literal #147

@wernz0r

Description

@wernz0r

Describe the bug
vPAV crashes with a StringIndexOutOfBoundsException when you don't use a string literal as parameter for "throw new BpmnError()".

To Reproduce
This works:

try{
    doSomething();
} catch(Exception e) {
    throw new BpmnError("someErrorCode");
}

This doesn't:

String myAwesomeErrorCode = "someErrorCode";
try{
    doSomething();
} catch(Exception e) {
    throw new BpmnError(myAwesomeErrorCode);
}

Expected behavior
No StringIndexOutOfBoundsException.

Desktop (please complete the following information):

  • Version 2.6.1

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions