BedWars1058 icon indicating copy to clipboard operation
BedWars1058 copied to clipboard

[BUG] Unnecessary Exception

Open dG9hc3Q opened this issue 2 years ago • 0 comments

Describe the bug StatsManager Line 50 throws IllegalStateException when player stats is null, which happens when they are dead or similar scenarios, a return would make more sense.

The problem with this is that: a) It spams console with unnecessary stack trace b) Causes issues with ajLeaderboard as its constantly trying to update the placeholder image

Expected behavior Just return so in the special cases like when the player is dead, it doesn't spam stack trace.

dG9hc3Q avatar Apr 13 '22 17:04 dG9hc3Q