Skip to content

Commit

Permalink
saveAll should be null-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
games647 committed Jul 21, 2017
1 parent 8ad4dee commit 1933bd9
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -274,6 +274,7 @@ public void saveAll() {
//If pvpstats are enabled save all stats that are in the cache
List<PlayerStats> toSave = BackwardsCompatibleUtil.getOnlinePlayers().stream()
.map(this::getCachedStats)
.filter(Objects::nonNull)
.filter(PlayerStats::isModified)
.collect(Collectors.toList());

Expand Down

0 comments on commit 1933bd9

Please sign in to comment.