diff options
| -rw-r--r-- | showcaseview/java/com/github/amlcurran/showcaseview/targets/ViewTarget.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/showcaseview/java/com/github/amlcurran/showcaseview/targets/ViewTarget.java b/showcaseview/java/com/github/amlcurran/showcaseview/targets/ViewTarget.java index d59dd0d..b7fb4f5 100644 --- a/showcaseview/java/com/github/amlcurran/showcaseview/targets/ViewTarget.java +++ b/showcaseview/java/com/github/amlcurran/showcaseview/targets/ViewTarget.java @@ -37,6 +37,9 @@ public class ViewTarget implements Target { @Override public Point getPoint() { + if (mView == null) { + return null; + } int[] location = new int[2]; mView.getLocationInWindow(location); int x = location[0] + mView.getWidth() / 2; |
