If I compile the following code in Debug mode, this executes fine. If I compile it as Release, I get the following error:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference
Note that "cust" is a map that may not contain "CompanyName". What's going on?
-- Geoff
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference
B4X:
If cust.ContainsKey("CompanyName") Then
If Not ((cust.Get("CompanyName") = "") Or (cust.Get("CompanyName") = Null)) Then
lbl.Text = cust.Get("CompanyName")
End If
End If
Note that "cust" is a map that may not contain "CompanyName". What's going on?
-- Geoff