Good evening everyone,
I think I have found a bug in B4J or there is something I do not understand completely.
I create a WebApp which accepts a posted JSON and gets a "ClientID" key from the derived from JSON map. Consider this code:
If I place a breakpoint in the "Try" line and I have sent a ClientID = -1 then it executes correctly ADD function everytime.
If now I try without a breackpoint in the "Try" line and I have sent a ClientID = -1 then it executes correctly ADD function the first time and from the next and on it executes wrongly the UPDATE client function (????? - Quantum effects in B4J ? ). I send the requests with Postman.
Any suggestions?
I think I have found a bug in B4J or there is something I do not understand completely.
I create a WebApp which accepts a posted JSON and gets a "ClientID" key from the derived from JSON map. Consider this code:
B4X:
Dim m as Map
Try
m=sJSON.As(JSON).ToMap
If m.get("ClientID") = -1 then
'Add the client
Else
'Update the client
End if
Catch
Log(LastException)
End Try
If I place a breakpoint in the "Try" line and I have sent a ClientID = -1 then it executes correctly ADD function everytime.
If now I try without a breackpoint in the "Try" line and I have sent a ClientID = -1 then it executes correctly ADD function the first time and from the next and on it executes wrongly the UPDATE client function (????? - Quantum effects in B4J ? ). I send the requests with Postman.
Any suggestions?