Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Loop Guarding #798

Open
Sxtanna opened this issue Dec 17, 2021 · 0 comments
Open

Incorrect Loop Guarding #798

Sxtanna opened this issue Dec 17, 2021 · 0 comments

Comments

@Sxtanna
Copy link

Sxtanna commented Dec 17, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant