How do I handle a for each loop when the collection is nothing, I thought it would just skip over but i get an exeption?
Do I need to wrap the foreach loop in a if to check for nothing and only if it is not nothing then enter in the for each loop?
For Each item As String In MyStringList
'do something with each item but something myStringList will be nothing?
Next
Yes.
Microsoft says it is by design: