I found that CreateMap accepts Null values as well, like so:
but If I had something like:
I would get an error: java.lang.RuntimeException: Object should first be initialized (Map) <--- Map Value, the parameter.
Obviously I got around this problem easily but I wonder if it is right for this to happen.
B4X:
MyMap = CreateMap("Value":Null)
B4X:
MyMap = Create(Null)
Private Sub Create(Value As Map) As Map
Return CreateMap("Value":Value)
End Sub
Obviously I got around this problem easily but I wonder if it is right for this to happen.
Last edited: