Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android.view.ViewGroup.getChildCount()' on a null object reference #40

Open
LironSterenBob opened this issue Feb 3, 2025 · 0 comments

Comments

@LironSterenBob
Copy link

LironSterenBob commented Feb 3, 2025

NullPointerException
Attempt to invoke virtual method 'int android.view.ViewGroup.getChildCount()' on a null object reference
mechanism
UncaughtExceptionHandler
handled
false

com.hjq.window.EasyWindow in setContentView at line 766
com.ting.TingModule in alert$lambda$8 at line 129
com.ting.TingModule in $r8$lambda$T93MJ8Tgrs9VogtYjpop5GQesVc
com.ting.TingModule$$ExternalSyntheticLambda2 in run
android.os.Handler in handleCallback at line 958
android.os.Handler in dispatchMessage at line 99
android.os.Looper in loopOnce at line 230
android.os.Looper in loop at line 319
android.app.ActivityThread in main at line 8919
java.lang.reflect.Method in invoke
com.android.internal.os.RuntimeInit$MethodAndArgsCaller in run at line 578
com.android.internal.os.ZygoteInit in main at line 1103

i try to call ting via react native project its crash on android devices in some scenarios probably because the code in TingModule
private val alertWindow = EasyWindow<EasyWindow<>>(currentActivity)
private val toastWindow = EasyWindow<EasyWindow<
>>(currentActivity)

the scenario where the activity is in destroy state not handle so there is scenario where the mDecorView in the EasyWindow can be null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant