Skip to content

Commit

Permalink
Fix for index out-of-bounds on incomplete static import
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Apr 16, 2018
1 parent 92938cd commit ab9e189
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ public ImportNode visitImportDeclaration(ImportDeclarationContext ctx) {
// GRECLIPSE edit
//configureAST(classNode, ctx);
ASTNode typeNode = PositionConfigureUtils.configureAST(classNode instanceof ImmutableClassNode ? new ClassExpression(classNode) : classNode, ctx.qualifiedName());
PositionConfigureUtils.configureEndPosition(typeNode, identifierList.get(identifierListSize - 2).getStop());
PositionConfigureUtils.configureEndPosition(typeNode, identifierList.get(Math.max(0, identifierListSize - 2)).getStop());
configureAST(typeNode);
// GRECLIPSE end

Expand Down

0 comments on commit ab9e189

Please sign in to comment.