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

I'm using Spotlight in a fragment, I got Attempt to invoke virtual method 'void android.view.View.getLocationInWindow(int[])' on a null object reference #89

Open
emailsubjekt opened this issue Jul 16, 2019 · 0 comments

Comments

@emailsubjekt
Copy link

emailsubjekt commented Jul 16, 2019

This is the error

Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'void android.view.View.getLocationInWindow(int[])' on a null object reference
com.wooplr.spotlight.target.ViewTarget.getPoint (ViewTarget.java:23)
com.wooplr.spotlight.shape.Circle.getFocusPoint (Circle.java:36)
com.wooplr.spotlight.shape.Circle. (Circle.java:24)
com.wooplr.spotlight.SpotlightView$Builder.build (SpotlightView.java:1082)
com.wooplr.spotlight.SpotlightView$Builder.show (SpotlightView.java:1091)

What could it be? I haven't put a check if that fragment is currently showing, could that be the problem? Or is it the library? Thank you by the way.

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