You can check if anything is selected first:
VB Code:
  1. If lstChar.SelectedItems.Length>0
  2. Dim lv As ListViewItem = lstChar.SelectedItems(0)
  3. End if
  4.  
  5. 'or
  6. If Not lstChar.SelectedItems.Length Is Nothing
  7. Dim lv As ListViewItem = lstChar.SelectedItems(0)
  8. End if