Autorank

Autorank

380k Downloads

Incorrect Loop Guarding

Sxtanna opened this issue ยท 0 comments

commented

while (true) {
try {
if (!result.next()) break;
} catch (SQLException e) {
e.printStackTrace();
}

If this call to ResultSet#next results in an SQLException, it will simply print the stacktrack then produce more errors. It will never break from the loop. This causes infinite stacktrace spam in the console, producing gigantic log files.

Please fix.