From 0b77293929ef162f460596312304b2815848a050 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Tue, 1 Jun 2021 17:55:45 -0400 Subject: [PATCH] Workaround for incomplete quester data, fixes #1704 --- .../blackvein/quests/storage/implementation/sql/SqlStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/me/blackvein/quests/storage/implementation/sql/SqlStorage.java b/main/src/main/java/me/blackvein/quests/storage/implementation/sql/SqlStorage.java index 15aa87a85..34b590682 100644 --- a/main/src/main/java/me/blackvein/quests/storage/implementation/sql/SqlStorage.java +++ b/main/src/main/java/me/blackvein/quests/storage/implementation/sql/SqlStorage.java @@ -200,7 +200,7 @@ public class SqlStorage implements StorageImplementation { } else { try (PreparedStatement ps = c.prepareStatement(statementProcessor.apply(PLAYER_INSERT))) { ps.setString(1, uniqueId.toString()); - ps.setString(2, lastKnownName); + ps.setString(2, lastKnownName != null ? lastKnownName : "unspecified"); ps.setInt(3, quester.getQuestPoints()); ps.execute(); }