Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Commented Issue: NullReference exception with CueList [16373]

$
0
0
Second constructor in CueList file is missing the initialization of the cues member.<br />"private List<Cue> cues = new List<Cue>();"<br /><br />This produces a null reference exception when trying to use the CueWaveFileReader.<br /><br />I suggest you initialize the list inline instead.<br /><br />NAudio-Source\NAudio\Wave\WaveStreams\CueList.cs, line 92<br />from<br />private List<Cue> cues;<br />to<br />private List<Cue> cues = new List<Cue>();
Comments: thank's for reporting, I've made the fix

Viewing all articles
Browse latest Browse all 738

Trending Articles