mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Attempts to fix #602
This commit is contained in:
parent
36a9825442
commit
9237ae3ef0
@ -64,6 +64,9 @@ public class SQLFetchOps extends SQLOps implements FetchOperations {
|
||||
|
||||
for (UserInfo userInfo : serverUserInfo) {
|
||||
UUID uuid = userInfo.getUuid();
|
||||
if (uuid == null) {
|
||||
continue;
|
||||
}
|
||||
PlayerProfile profile = new PlayerProfile(uuid, userInfo.getName(), userInfo.getRegistered());
|
||||
profile.setTimesKicked(timesKicked.getOrDefault(uuid, 0));
|
||||
if (userInfo.isBanned()) {
|
||||
|
@ -9,6 +9,7 @@ import com.djrapitops.plan.data.calculation.AnalysisData;
|
||||
import com.djrapitops.plan.system.webserver.response.errors.ErrorResponse;
|
||||
import com.djrapitops.plan.utilities.file.FileUtil;
|
||||
import com.djrapitops.plan.utilities.html.HtmlUtils;
|
||||
import com.djrapitops.plugin.utilities.Verify;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@ -22,6 +23,7 @@ public class AnalysisPage extends Page {
|
||||
private final AnalysisData data;
|
||||
|
||||
public AnalysisPage(AnalysisData analysisData) {
|
||||
Verify.nullCheck(analysisData, () -> new IllegalArgumentException("Analysis failed, data object was null"));
|
||||
this.data = analysisData;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user