Hi,
I am using this tutorial with HttpUtils2 and everything is working perfectly, but I have problem with bool variable.
I have this code:
Sometimes I get NullPointerException in "If Start = True Then", but it should not be possible and in log is "false" so variable isn't Null. It is really wierd, because it does not happen everytime.
Thanks for Answer!
I am using this tutorial with HttpUtils2 and everything is working perfectly, but I have problem with bool variable.
I have this code:
B4X:
Dim Start = False As Boolean
If m.Get("Start") = Null Then
Start = False
Else
Start = m.Get("Start")
End If
Log(Start)
If Start = True Then
'Do something
Else
'Do something else
End If
Sometimes I get NullPointerException in "If Start = True Then", but it should not be possible and in log is "false" so variable isn't Null. It is really wierd, because it does not happen everytime.
Thanks for Answer!