1

Resolved

NullReference exception with CueList

description

Second constructor in CueList file is missing the initialization of the cues member.
"private List<Cue> cues = new List<Cue>();"

This produces a null reference exception when trying to use the CueWaveFileReader.

I suggest you initialize the list inline instead.

NAudio-Source\NAudio\Wave\WaveStreams\CueList.cs, line 92
from
private List<Cue> cues;
to
private List<Cue> cues = new List<Cue>();

comments

markheath wrote Dec 4, 2012 at 1:32 PM

thank's for reporting, I've made the fix