Skip to content

Commit

Permalink
fix AlignDeclarationsRule for comments at end of code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgrassau committed Sep 4, 2023
1 parent 823cbbc commit b5ae3c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ private TableSet buildTable(Command startCommand, Command endCommand, boolean in
}
} else {
// skip Commands that are whole comment lines
while (command.isCommentLine() && command != endCommand)
while (command != null && command.isCommentLine() && command != endCommand)
command = command.getNext();
if (command == endCommand)
break;
Expand Down

0 comments on commit b5ae3c7

Please sign in to comment.