Skip to content

Commit

Permalink
Merge pull request #652 from FgForrest/arrayindexoutofbounds-fix
Browse files Browse the repository at this point in the history
fix: ArrayIndexOutOfBounds error correction
  • Loading branch information
novoj authored Aug 26, 2024
2 parents ef632e2 + 9dbd05c commit e589a4b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ private static List<LevelInfo> sort(@Nonnull List<LevelInfo> result, @Nonnull in
it -> it.entity().getPrimaryKey()
)
);
} else if (result.isEmpty()) {
return Collections.emptyList();
} else {
return Collections.singletonList(
levelInfoToSort[0]
Expand Down

0 comments on commit e589a4b

Please sign in to comment.