Skip to content

Commit

Permalink
fix npe when encountering new game in datapackage checksum check.
Browse files Browse the repository at this point in the history
  • Loading branch information
KonoTyran committed May 19, 2024
1 parent 25b1fb7 commit cdcdc4c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,12 @@ private void checkDataPackage(HashMap<String, String> versions, List<String> gam
for (Map.Entry<String, String> game : versions.entrySet()) {
if (!games.contains(game.getKey()))
continue;
if (!checksums.containsKey(game.getKey()))

if (!checksums.containsKey(game.getKey())) {
gamesToUpdate.add(game.getKey());
continue;
}

if (!checksums.get(game.getKey()).equals(game.getValue()))
gamesToUpdate.add(game.getKey());
}
Expand Down

0 comments on commit cdcdc4c

Please sign in to comment.