mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-01 09:29:50 +02:00
Fixes NPE related to PermGroupTable group capitalization #312
This commit is contained in:
parent
6101b94055
commit
270502114b
|
@ -6,6 +6,7 @@
|
|||
package com.djrapitops.pluginbridge.plan.vault;
|
||||
|
||||
import com.djrapitops.plugin.utilities.Format;
|
||||
import com.djrapitops.plugin.utilities.Verify;
|
||||
import com.djrapitops.pluginbridge.plan.FakeOfflinePlayer;
|
||||
import main.java.com.djrapitops.plan.data.additional.AnalysisType;
|
||||
import main.java.com.djrapitops.plan.data.additional.PluginData;
|
||||
|
@ -56,6 +57,9 @@ public class PermGroupTable extends PluginData {
|
|||
.map(uuid -> new FakeOfflinePlayer(uuid, getNameOf(uuid))).collect(Collectors.toList());
|
||||
for (OfflinePlayer p : userData) {
|
||||
String group = permSys.getPrimaryGroup(null, p);
|
||||
if (Verify.isEmpty(group)) {
|
||||
continue;
|
||||
}
|
||||
if (!groups.containsKey(group)) {
|
||||
groups.put(group, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user