Skip to content

Commit

Permalink
Fixed NullPointerException while performing rollbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Jul 8, 2023
1 parent b930948 commit d7d53bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/coreprotect/database/Rollback.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ else if (table == 1) { // container
clearInventories = true;
}

ArrayList<Object[]> data = finalBlockList.get(chunkKey);
ArrayList<Object[]> itemData = finalItemList.get(chunkKey);
ArrayList<Object[]> data = finalBlockList.getOrDefault(chunkKey, new ArrayList<>());
ArrayList<Object[]> itemData = finalItemList.getOrDefault(chunkKey, new ArrayList<>());
Map<Block, BlockData> chunkChanges = new LinkedHashMap<>();

for (Object[] row : data) {
Expand Down

0 comments on commit d7d53bf

Please sign in to comment.