Android Question Release and Debug difference Null or ""null"

fsikkerm

Member
Licensed User
Longtime User
Hi Guys

Just some weird behaviour or is just me?
after a request to a site i get json back and store it in map

parser.Initialize(res)
AllData = parser.NextArray 'returns a list with maps

Some where else in the code :

Dim tmpmap as map
tmpmap.Initialise
TmpMap=AllData.Get(2)
If TmpMap.Get("Enddate") = "null" Then '<==== Works in debug mode but not in release
' dosomething
Endif

In release has to be:
If TmpMap.Get("Enddate") = Null Then '<==== No string
' dosomething
Endif

Any tips suggestions ?
 

eps

Expert
Licensed User
Longtime User
Are you stepping through the debug execution? It might be that something is happening out of order when debugging.. Maybe try logging info. to the console. Or wait for @Erel who might know if the reason - but they should be the same.

Which version of B4A are you using?
 
Upvote 0

fsikkerm

Member
Licensed User
Longtime User
I'm using 6.80
I think i messed up.. "null" works also in release but gives wrong result ( of course )
Thx for the feedback..
 
Upvote 0
Top