Closed AaykeN closed 5 days ago
I'll check it. Thank you for identifying the bug!
After reviewing the error, we identified that the issue occurs when the WAV file used for BGM is repeatedly requested to play within a very short interval. We have modified the Sound Operator team's code to ensure that the stop method only executes if the object exists.
If the same error occurs again, please let us know!
Problem Description
While playing the game, it occasionally crashes with the following error:
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.util.Map.values()" because "Sound_Operator.SoundManager.BGMs" is null at Sound_Operator.SoundManager.stopAllBGM(SoundManager.java:84) at engine.Core.main(Core.java:215)
Steps to Reproduce
Additional Information
This crash tends to occur at the end of a round when background music may be stopping or transitioning.