Attempts to fix #602

This commit is contained in:
Rsl1122 2018-06-07 10:52:17 +03:00
parent 36a9825442
commit 9237ae3ef0
2 changed files with 5 additions and 0 deletions

View File

@ -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()) {

View File

@ -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;
}