LeoBeliik / ExtremeSoundMuffler

Muffle those nasty sounds - Client side sound Muffler
GNU Lesser General Public License v3.0
20 stars 9 forks source link

DataManager (Error executing task on Client) #61

Closed segg21 closed 1 year ago

segg21 commented 1 year ago

Extreme sound muffler version

3.37

Forge / Fabric version

43.2.14

Additional mod(s) version (If bug is due incompatibility)

ATM8 Mods

Describe the bug

Recently some players from ATM8 & ATM9 modpack has had issues with this mod. Upon investigation it had appeared that the main issue was that DataManager uses Gson#fromJson() which can return null. Not sure exactly why it would return null, and haven't quite reproduced the issue. This should be null checked atleast with some fallback?

Due to this code being a mixin from player constructor, the crash report is misleading, though log provided to exact line of the error, and code reference mentioned.

Log: https://mclo.gs/YTc5Rfl#L3104 Code Reference: DataManager.java#L69

In-case this may be another mod interfering, any feedback would be thankful. Thanks!

Steps to reproduce

Haven't been reproduced yet

Crashlog

Since this was a MIXIN, the crash report is mis-leading, though can provide if necessary.

Additional context

No response

LeoBeliik commented 1 year ago

I can't reproduce this so I have no idea why it happens, I'll add a null check and see if that fixes it, please let me know if this keeps happening.