helpcrunch / android-sdk-demo

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

Fatal Exception: java.lang.NullPointerException in com.helpcrunch.library.ui.screens.chat.HcChatFragment #78

Closed yaroslav-v closed 6 months ago

yaroslav-v commented 11 months ago

Hi!

I've found in Firebase logs that the latest v3.3.5 caused a couple of NullPointerExceptions. Both of them were observed on Android 13. Below you can find crash logs for the issues.

The 1st issue:

Fatal Exception: java.lang.NullPointerException

com.helpcrunch.library.ui.screens.chat.HcChatFragment.E (SourceFile:1)
com.helpcrunch.library.ui.screens.chat.HcChatFragment.a (SourceFile:2611)
android.view.View.onFocusChanged (View.java:8560)
android.widget.TextView.onFocusChanged (TextView.java:12193)
android.view.View.clearFocusInternal (View.java:8397)
android.view.View.unFocus (View.java:8430)
android.view.ViewGroup.unFocus (ViewGroup.java:1210)
android.view.ViewGroup.unFocus (ViewGroup.java:1210)
android.view.ViewGroup.unFocus (ViewGroup.java:1210)
android.view.ViewGroup.unFocus (ViewGroup.java:1210)
android.view.ViewGroup.unFocus (ViewGroup.java:1210)
android.view.ViewGroup.requestChildFocus (ViewGroup.java:868)
android.view.ViewGroup.requestChildFocus (ViewGroup.java:874)
android.view.ViewGroup.requestChildFocus (ViewGroup.java:874)
android.view.ViewGroup.requestChildFocus (ViewGroup.java:874)
android.view.ViewGroup.requestChildFocus (ViewGroup.java:874)
android.view.ViewGroup.requestChildFocus (ViewGroup.java:874)
android.view.View.handleFocusGainInternal (View.java:8222)
android.view.View.requestFocusNoSearch (View.java:14384)
android.view.View.requestFocus (View.java:14358)
android.view.View.requestFocus (View.java:14325)
android.view.View.requestFocus (View.java:14267)
com.helpcrunch.library.utils.views.input.HcInputView.g (SourceFile:1)
com.helpcrunch.library.utils.views.input.HcInputView.a (SourceFile:3828)
com.helpcrunch.library.utils.views.input.HcInputView.a (SourceFile:2)
com.helpcrunch.library.utils.views.input.HcInputView$setState$1.a (SourceFile:1)
com.helpcrunch.library.utils.views.input.HcInputView$setState$1.invoke (SourceFile:1)
com.helpcrunch.library.utils.views.expandablelayout.HcExpandableLayout$animateChange$1.a (SourceFile:2)
com.helpcrunch.library.utils.views.expandablelayout.HcExpandableLayout.setExpansion (SourceFile:121)
com.helpcrunch.library.utils.views.expandablelayout.HcExpandableLayout.a (SourceFile:50)
android.animation.ValueAnimator.animateValue (ValueAnimator.java:1653)
android.animation.ValueAnimator.animateBasedOnTime (ValueAnimator.java:1440)
android.animation.ValueAnimator.doAnimationFrame (ValueAnimator.java:1572)
android.animation.AnimationHandler.doAnimationFrame (AnimationHandler.java:307)
android.animation.AnimationHandler.-$$Nest$mdoAnimationFrame
android.animation.AnimationHandler$1.doFrame (AnimationHandler.java:86)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:1299)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:1309)
android.view.Choreographer.doCallbacks (Choreographer.java:923)
android.view.Choreographer.doFrame (Choreographer.java:847)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1283)
android.os.Handler.handleCallback (Handler.java:942)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loopOnce (Looper.java:226)
android.os.Looper.loop (Looper.java:313)
android.app.ActivityThread.main (ActivityThread.java:8762)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

The 2nd issue:

Fatal Exception: java.lang.NullPointerException

com.helpcrunch.library.ui.screens.chats_list.HcChatsListFragment.y (SourceFile:1)
com.helpcrunch.library.ui.screens.chats_list.HcChatsListFragment.w (SourceFile:1)
com.helpcrunch.library.ui.screens.chats_list.HcChatsListFragment.e (SourceFile:1)
android.os.Handler.handleCallback (Handler.java:942)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loopOnce (Looper.java:226)
android.os.Looper.loop (Looper.java:313)
android.app.ActivityThread.main (ActivityThread.java:8762)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)
TalbotGooday commented 10 months ago

Thanks for reporting! We will check that asap

TalbotGooday commented 6 months ago

Fixed in 3.3.8