The following sub is throwing a
"Object reference not set to an instance of an object."
exception.
For Each element As Song In modFiles.getSongs()
Dim col(2) As String
Dim item As ListViewItem
col(0) = element.SongTitle
col(1) = element.PlayTime
col(2) = element.SongFilename
item = New ListViewItem(col)
setList.Items.Add(item)
Next
The exception is thrown on lines
col(0) = element.SongTitle
col(1) = element.PlayTime
col(2) = element.SongFilename
Any help would be appreciated