Skip to content

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

@emailsubjekt

Description

@emailsubjekt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions