Bug? Null comparison results in error

wonder

Expert
Licensed User
Longtime User
Comparing an object with Null (or null object) works, but comparing Null with an object doesn't work.

upload_2019-5-8_22-22-59.png


Is this normal?

Here's Python for comparison (no errors):
upload_2019-5-8_22-25-14.png


It happens in both B4A and B4J.

Another example:
B4X:
Dim A As Object  
Dim B As Map
B.Initialize
Log(A == B.GetDefault("KEY", Null)) 'Works
Log(B.GetDefault("KEY", Null) == A) 'Crashes
 
Last edited:
Top