Hi all!
Sometimes and on some user's devices I am facing strange crash that i can't understand where they are coming from.
The crashes happens in Jobdone sub and are like this one:
After investigating i am wondering if i am using the Job.Release command in the correct way.
For example this is an example how i use Job.Release:
I was wondering if the error is due to the fact that i release the job in first IF-THEN and consequently in the second IF-THEN the job is seen as Null...
If it is seen as Null why the exception is rised only on some devices and on some others never happened anything bad for months?
Thanks in advance for your help!
Sometimes and on some user's devices I am facing strange crash that i can't understand where they are coming from.
The crashes happens in Jobdone sub and are like this one:
B4X:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
After investigating i am wondering if i am using the Job.Release command in the correct way.
For example this is an example how i use Job.Release:
B4X:
Sub JobDone (Job As HttpJob)
If Job.JobName="Test1" Then
<...all instructions here...>
Job.Release
End if
If Job.JobName="Test2" Then
<...all instructions here...>
Job.Release
End if
End Sub
I was wondering if the error is due to the fact that i release the job in first IF-THEN and consequently in the second IF-THEN the job is seen as Null...
If it is seen as Null why the exception is rised only on some devices and on some others never happened anything bad for months?
Thanks in advance for your help!