This is my class :
Public Class AddressForm
Private Street As String
Property Street_() As String
Get
Return Street
End Get
Set(ByVal value As String)
If value IsNot Nothing Then
Street = ""
Else
Street = value
End If
End Set
End Property
End Class
it is my object for above class BussinessAddressDialog
If Not BussinessAddressDialog.Street_ = String.Empty (here application crashes for empty value)
after this line i am inserting values in data base
Thnx for your help
Try using
ShortCircuittechnique:Probably
BussinessAddressDialogis not initialized has set toNothing.