its a bug?
output is
null
null
output is
null
null
B4X:
'B4J 7.51
Sub Test2
Dim Params As Map
Params.Initialize
'Params.Put("Key","ABC") 'without this row .Get Return something that can Not be Test As null
Dim MyString As String
MyString = Params.Get("Key")
Log(MyString)
'If IsNull(MyString) Then MyString = "123"
If MyString = Null Or MyString = "" Then MyString = "123"
Log(MyString)
End Sub
Sub IsNull(O As Object) As Boolean
Return (O=Null)
End Sub