B4XSerializator returns null in the event handling procedure, for the asynchronous method:
ser.ConvertBytesToObjectAsync (Bit.InputStreamToBytes (job.GetInputStream), "meet") ---->
Error message:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference
However, if you put an interrupt in the input of this method in the debugger, then in a step-by-step mode everything works fine (there is a value)
ser.ConvertBytesToObjectAsync (Bit.InputStreamToBytes (job.GetInputStream), "meet") ---->
B4X:
Private Sub enro_BytesToObject (Success As Boolean, NewObject As Object)
Dim m As Map = NewObject
If Success And m<> Null Then
If m.Get("taskname") ="" Then ' регистрация не доступна
' выдать сообщение обошибке
MsgboxAsync("Ошибка регистрации","")
........
end if
end if
end sub
Error message:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference
However, if you put an interrupt in the input of this method in the debugger, then in a step-by-step mode everything works fine (there is a value)
Last edited: