Visual Basic:
Private ReportLog As StringBuilder
Private Sub DoThat()
'We didn't assign any value to the ReportLog so here we want to check if it's empty or not?
If ReportLog IsNot Nothing And ReportLog.Length > 0 Then
'
End IF
End Sub
A first chance exception of type 'System.NullReferenceException' occurred in MyApp.exe
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
How should I check that variable?
Thank you