Android Question Check if Boolean is Null not working

Nickelgrass

Active Member
Licensed User
Longtime User
Hello,
I have a paradox problem. I have a boolean that sometimes is Null.
check bool:
dim a as boolean
a = CallSub2(somemodule, "somefunction", someparameter)
If a = Null Then
    log("a is null")
Else
    Log("not null")
    If a Then
        log("a is true")
    else
        log("a is false")
    End If
End If
Then I get an error "java.lang.RuntimeException: Cannot parse: null as boolean" if it is not null. If I leave away the check "If a = Null then" then I sometimes get the exception that a is null.
Do I have to use try catch here?
Thanks
Regards
 
Top