helpcrunch / android-sdk-demo

Public demo for HelpCrunch Android SDK
Apache License 2.0
9 stars 1 forks source link

NullPointerException #51

Closed nostra13 closed 2 years ago

nostra13 commented 3 years ago

Crash from production:

Fatal Exception: java.lang.NullPointerException
       at com.helpcrunch.library.e.b.c.c.v(c.java:1)
       at com.helpcrunch.library.e.b.c.c$$InternalSyntheticLambda$1$07967fcdea027a9b6ddb65c08e75b2b3e357f488d858ee97b41d2e4f5394f008$0.run$bridge(c.java:5)
       at android.os.Handler.handleCallback(Handler.java:883)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:237)
       at android.app.ActivityThread.main(ActivityThread.java:7948)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

implementation "com.helpcrunch:chat-sdk:3.1.5"

Devices: Samsung Galaxy A50/A30s/A20, Xiaomi Mi A2 Lite, MI 8 Lite Android: 10, 11

TalbotGooday commented 3 years ago

Thanks for the reporting!

nostra13 commented 3 years ago

Still reproducing for 3.1.6.

TalbotGooday commented 3 years ago

Hello! Sorry about that Are you sure the problem is the same? Could you please share the stacktrace?

TalbotGooday commented 3 years ago

@nostra13 pleeease? :C

nostra13 commented 3 years ago
Fatal Exception: java.lang.NullPointerException
       at com.helpcrunch.library.e.b.c.c.v(c.java:1)
       at com.helpcrunch.library.e.b.c.c$$InternalSyntheticLambda$1$07967fcdea027a9b6ddb65c08e75b2b3e357f488d858ee97b41d2e4f5394f008$0.run$bridge(c.java:5)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8512)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

According to Crashlytics it's still happens on builds with HelpCrunch 3.1.6 ¯_(ツ)_/¯

TalbotGooday commented 3 years ago

It really is the same. So I'm 99% sure that the customer has not update the app yet. The SDK mapping file has changed so the stacktrace may not be the same even if the exception is the same

nostra13 commented 3 years ago

Well, it's still happening, on 3.1.7 too. Quite rarely (1-7 crashes per day) but still. Stacktrace is same as aforementioned one.

TalbotGooday commented 2 years ago

Is this the latest stacktrace? 'Cause it's definitely a stacktrace for the 3.1.5. I checked so many times and this one is suitable only for v 3.1.5

nostra13 commented 2 years ago

This is how Crashlytics shows me it for latest release with SDK 1.3.7:

Fatal Exception: java.lang.NullPointerException
       at com.helpcrunch.library.e.b.c.c.v(c.java:1)
       at com.helpcrunch.library.e.b.c.c$$InternalSyntheticLambda$1$07967fcdea027a9b6ddb65c08e75b2b3e357f488d858ee97b41d2e4f5394f008$0.run$bridge(c.java:5)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:264)
       at android.app.ActivityThread.main(ActivityThread.java:8282)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

I don't know, maybe somehow it's an error of Crashlytics reports but that's what I see.