Crash while initialization Raygun module for Android
Ksenia
Posted on
Sep 03 2016
Hello! Raygun init method crashes. Crash is mostly encountered when renewing app version. Customers complain that after 2 crashes the app starts successfully. Same crash occurred if two instances of the app (using same Raygun key) are started on the same device.
Init is called from ReactNative main component componentDidMount() method.
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.content.Context.getPackageManager()' on a null object reference
at main.java.com.mindscapehq.android.raygun4android.RaygunClient.Init(RaygunClient.java:81)
at com.roboforex.webtrader.RaygunModule.init(RaygunModule.java:28)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:319)
at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:139)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:145)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
at java.lang.Thread.run(Thread.java:818)
Deleted User
Posted on
Dec 27 2016
Hello!
Are you still receiving reports of 2 crashes before the application will load properly with Raygun installed? I took a quick look at the issues and pr's for the Raygun4android provider in GitHub but I don't see any reports of a similar issue in the last year. Any updated information you can provide us will aid in tracking down the source of the behavior.
Thank you for your time and patience,
Jesse, Developer Evangelist at Raygun