Skip to content

Commit

Permalink
Fix null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
brodmo committed Jul 15, 2023
1 parent d924271 commit 368b539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/de/jplag/Submission.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ private static File createErrorDirectory(String... subdirectoryNames) {
* statement reordering.
*/
void normalize() {
if (tokenList == null)
return;
List<Integer> originalOrder = getOrder(tokenList);
TokenStringNormalizer.normalize(tokenList);
List<Integer> normalizedOrder = getOrder(tokenList);
Expand Down

0 comments on commit 368b539

Please sign in to comment.