vb test if reference is null code example Example: vb test if reference is null If object IsNot Nothing Then End if