Fixed a bug where empty optional is always returned (Registered: -)

This commit is contained in:
Rsl1122 2017-10-06 17:26:51 +03:00
parent 1241019fa4
commit 7af6cd238f

View File

@ -425,7 +425,7 @@ public class UsersTable extends UserIDTable {
@Override
public Optional<Long> processResults(ResultSet set) throws SQLException {
if (set.next()) {
Optional.of(set.getLong(columnRegistered));
return Optional.of(set.getLong(columnRegistered));
}
return Optional.empty();
}