neumatho/NostalgicPlayer

NostalgicPlayerConsole throws System.NullReferenceException

mnerec opened this issue · 2 comments

mnerec commented

In Polycode.NostalgicPlayer.PlayerLibrary.Mixer.MixerVisualize.QueueChannelChange() enabledChannels is dereferenced without checking for null.

Changing Enabled = i < enabledChannels.Length ? enabledChannels[i] : true to Enabled = (enabledChannels != null && i < enabledChannels.Length) ? enabledChannels[i] : true fixes the issue.

It might only be for some formats. Reproduced with PT and JamCracker mods.

Thanks. Will look at it later today.

Bug fixed.