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

NPE crash when rotating device #383

Open
2 tasks done
AndreSand opened this issue Feb 17, 2021 · 0 comments
Open
2 tasks done

NPE crash when rotating device #383

AndreSand opened this issue Feb 17, 2021 · 0 comments

Comments

@AndreSand
Copy link

AndreSand commented Feb 17, 2021

  • I have verified the issue exists on the latest version
  • I am able to reproduce it

I'm seeing the crash when the tooltip is shown and I rotate the screen.
I added .dismiss() on Activity onStop() butI still see the crash.

Version used:
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.13.0'

Stack trace:

2021-02-16 17:47:21.751 13336-13336 E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.dispatchDetachedFromWindow()' on a null object reference
        at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3806)
        at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:4146)
        at android.view.ViewRootImpl.doDie(ViewRootImpl.java:7151)
        at android.view.ViewRootImpl.die(ViewRootImpl.java:7128)
        at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:490)
        at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:428)
        at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:126)
        at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4992)
        at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5255)
        at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5187)
        at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Android version:
Android 11

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