Staartvin / Autorank-2

Autorank is a Spigot/Bukkit plugin for automatically ranking players based on requirements
Other
56 stars 62 forks source link

Incorrect Loop Guarding #798

Open Sxtanna opened 2 years ago

Sxtanna commented 2 years ago

https://github.com/Staartvin/Autorank-2/blob/7b579e2fd30da32e57f9fc7867729b4ffd49bd5b/src/me/armar/plugins/autorank/pathbuilder/playerdata/global/GlobalPlayerDataStorage.java#L144-L150

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.