fix: bug class involving rs usage.

This commit is contained in:
MagicBot committed 2023-05-23 12:24:11 -04:00
1 parent 568b0291a2
commit ad99415679
6 files changed
+30 -22

No files matched your search

+5 -4
View File
@@ -433,11 +433,12 @@ public class dbGuildHandler extends dbHandlerBase {
ResultSet rs = preparedStatement.executeQuery();
int objectUUID = (int) rs.getLong("UID");
if (objectUUID > 0)
guild = GET_GUILD(objectUUID);
if (rs.next()) {
int objectUUID = (int) rs.getLong("UID");
if (objectUUID > 0)
guild = GET_GUILD(objectUUID);
}
} catch (SQLException e) {
Logger.error(e);
}