Android Question Testing for Null

Homerclese

Member
Licensed User
Longtime User
I have a class with the following code in the Initialize method:

B4X:
Public Sub Initialize(crsr As Cursor)
    If crsr <> Null Then
    :

Sometimes I call myClass.Initialize(Null) and sometimes I call myCall.Initialize(dbCrsr) and pass in a cursor.

However I've found that even if crsr = "Not initialized" in the debugger, the code after the <> Null check still executes?
 
Top