Hi everybody:
I had this crash (signaled by Google):
Exception java.lang.RuntimeException: Object should first be initialized.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
the corresponding code is:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
The code references a Starter contained object (SQL1).
Is this a case in which Starter service has been stopped from system and the reception of a message from Firebase has found a null object?
I have no code at this level to restart Starter(I have actually added it) in case it's stopped by system.
Thank you in advance
Mauro Zanin
			
			I had this crash (signaled by Google):
Exception java.lang.RuntimeException: Object should first be initialized.
			
				B4X:
			
		
		
		anywheresoftware.b4a.sql.SQL.checkNull (SQL.java:48)
anywheresoftware.b4a.sql.SQL.ExecQuery (SQL.java:154)
it.whereami.logicdata.firebasemessaging._vvvvvvvvvvvvvvvvvvvvvvvvvv0 (firebasemessaging.java:448)
it.whereami.logicdata.firebasemessaging._fm_messagearrived (firebasemessaging.java:280)
java.lang.reflect.Method.invoke (Method.java)
anywheresoftware.b4a.BA.raiseEvent2 (BA.java:179)
anywheresoftware.b4a.BA$1.run (BA.java:303)
android.os.Handler.handleCallback (Handler.java:739)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:158)
android.app.ActivityThread.main (ActivityThread.java:7229)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)the corresponding code is:
			
				B4X:
			
		
		
		Sub testclient (codice As String) As Boolean
    Dim nt() As String=Regex.Split(",",codice)
    Dim telno As String =nt(1) & nt(0)
    Dim cur As Cursor = Starter.SQL1.ExecQuery("select * from abilita where telno='" & telno & "'")
    If cur.RowCount=0 Then
        cur.Close
        Return True
    Else
        cur.Close
        Return False
    End If      
End SubIs this a case in which Starter service has been stopped from system and the reception of a message from Firebase has found a null object?
I have no code at this level to restart Starter(I have actually added it) in case it's stopped by system.
Thank you in advance
Mauro Zanin
 
				 
 
		 
 
		 
 
		 
 
		 
			 
 
		 
 
		 
 
		