mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-06 19:01:03 +01: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;
|
package com.djrapitops.pluginbridge.plan.vault;
|
||||||
|
|
||||||
import com.djrapitops.plugin.utilities.Format;
|
import com.djrapitops.plugin.utilities.Format;
|
||||||
|
import com.djrapitops.plugin.utilities.Verify;
|
||||||
import com.djrapitops.pluginbridge.plan.FakeOfflinePlayer;
|
import com.djrapitops.pluginbridge.plan.FakeOfflinePlayer;
|
||||||
import main.java.com.djrapitops.plan.data.additional.AnalysisType;
|
import main.java.com.djrapitops.plan.data.additional.AnalysisType;
|
||||||
import main.java.com.djrapitops.plan.data.additional.PluginData;
|
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());
|
.map(uuid -> new FakeOfflinePlayer(uuid, getNameOf(uuid))).collect(Collectors.toList());
|
||||||
for (OfflinePlayer p : userData) {
|
for (OfflinePlayer p : userData) {
|
||||||
String group = permSys.getPrimaryGroup(null, p);
|
String group = permSys.getPrimaryGroup(null, p);
|
||||||
|
if (Verify.isEmpty(group)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!groups.containsKey(group)) {
|
if (!groups.containsKey(group)) {
|
||||||
groups.put(group, 0);
|
groups.put(group, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user