Skip to content

Commit

Permalink
added fix for rare NPE due to multi-thread access
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Apr 27, 2021
1 parent 5805a6c commit a733970
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private void refresh(Map<TabPlayer, Set<Refreshable>> forceUpdate, Map<TabPlayer
}

public void refreshPlaceholderUsage() {
placeholderUsage = new HashMap<>();
Map<String, Set<Refreshable>> placeholderUsage = new HashMap<>();
for (String placeholder : allUsedPlaceholderIdentifiers) {
Set<Refreshable> set = new HashSet<Refreshable>();
for (Feature r : tab.getFeatureManager().getAllFeatures()) {
Expand All @@ -199,6 +199,7 @@ public void refreshPlaceholderUsage() {
}
placeholderUsage.put(placeholder, set);
}
this.placeholderUsage = placeholderUsage;
}

@Override
Expand Down

0 comments on commit a733970

Please sign in to comment.