Quote:
How to check nothing then assign the value for address1 ?
Try with nullable operators:
Dim count As Integer? = customers?(0)?.Orders?.Count()
is same as:
Dim length As Integer
If customers IsNot Nothing Then
length = customers.Length
End If
Refer:
Null-conditional Operators - Visual Basic | Microsoft Docs[
^]
Your case, try something like:
Dim SAddress As String? = obj?.shipping_address.address1