I reconstructed CLog function for Crashlytics communation
In Strates's Service_Create I create an instance javaobjectFirebaseCrashlytics = javaobjectFirebaseCrashlytics.InitializeStatic ("com.google.firebase.crashlytics.FirebaseCrashlytics").RunMethod ("getInstance", Null) and then use following subroutine to output results.
Crashlytics shows
Activity_Resume looks so
Crashlytics refers exactly to Starter.CLog.
I am a little confused by Attempt to read from field 'com.quick.men.starter com.quick.men.guitasklist._starter' on a null object reference
Starter is null ? How it could be ? Or I understand something wrong ?
In Strates's Service_Create I create an instance javaobjectFirebaseCrashlytics = javaobjectFirebaseCrashlytics.InitializeStatic ("com.google.firebase.crashlytics.FirebaseCrashlytics").RunMethod ("getInstance", Null) and then use following subroutine to output results.
B4X:
Public Sub CLog (stringMessage As String)
javaobjectFirebaseCrashlytics.RunMethod ("log", Array (stringMessage))
If LastException.IsInitialized Then javaobjectFirebaseCrashlytics.RunMethod ("recordException", Array (LastException))
Log (stringMessage)
End Sub
Crashlytics shows
Fatal Exception: java.lang.NullPointerException
Attempt to read from field 'com.quick.men.starter com.quick.men.guitasklist._starter' on a null object reference
com.quick.men.guitasklist._activity_resume (guitasklist.java:640)
Activity_Resume looks so
B4X:
Try
...
Catch
Starter.Clog ("text")
End Try
Crashlytics refers exactly to Starter.CLog.
I am a little confused by Attempt to read from field 'com.quick.men.starter com.quick.men.guitasklist._starter' on a null object reference
Starter is null ? How it could be ? Or I understand something wrong ?