-
Notifications
You must be signed in to change notification settings - Fork 593
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
Nullpointer - onUpdate #279
Labels
Comments
xiphirx
added a commit
that referenced
this issue
Jul 5, 2018
xiphirx
added a commit
that referenced
this issue
Jul 5, 2018
xiphirx
added a commit
that referenced
this issue
Jul 5, 2018
xiphirx
added a commit
that referenced
this issue
Jul 5, 2018
ganny26
pushed a commit
to wa2do/TapTargetView
that referenced
this issue
Aug 10, 2018
ganny26
added a commit
to wa2do/TapTargetView
that referenced
this issue
Aug 10, 2018
* Add startWith and startAt to TapTargetSequence (KeepSafe#228) Previously it was cumbersome to restore state in a TapTargetSequence after rotation due to the fact that you needed to manually modify the list of targets you pass in to get back to your desired target. Now the class supports starting from a specified target id or position in the queue, allowing callers to keep a static list of targets for their sequence. * Added Support for React Native Projects (KeepSafe#230) * Update README.md * Update README.md * Update README.md * Update README.md * Add notion of isDismissing and gate onReady() callbacks on it (KeepSafe#243) * Add notion of isDismissing and gate onReady() callbacks on it There was a race condition I came across where a view could be animating out at the same time as the animation for dismissing the tap target. If the view animated out before the taptarget, it would trigger a layout again, and potentially redisplay the taptarget again. This gates onReady callbacks against the notion of "isDismissing". Tested locally in my project and confirmed this resolves the issue. * Return early (and earlier!) * Fix NPE when dismiss is called immediately (KeepSafe#244) Small "race" condition that shouldn't crash. Fixes KeepSafe#240 * 1.11.0 * Fix "sometimes" typo (KeepSafe#246) * Update Gradle version (KeepSafe#253) * Disable interaction during expand animation (KeepSafe#248) * Fix build (KeepSafe#256) * Update to latest support library + SDK version (KeepSafe#257) Was pretty outdated previously. * Use api configuration for public dependencies. (KeepSafe#258) Some support annotations and the v7 support Toolbar are both part of the public api, so they need to be specified as `api` in order for them to transitively picked up by downstream dependants. * Update build tools to most recent ones (KeepSafe#261) * update build tools to most recent ones * revert to last stable version and use gradle 4.5 * Use central build variables (KeepSafe#264) * in module "taptargetview" buildToolsVersion was missing und request an install of 26.0.2 * variable SupportLibraryVersion was just in one module * Handle dismiss before show * Replacement of "compile" with "implementation" (KeepSafe#291) As "compile" is going to be deprecated end-2018, this PR replaces with "implementation" that is the new usage. * Fix NPE from dismissal before determining center (KeepSafe#298) Fixes KeepSafe#279 * Fix not being able to cancel on last target (KeepSafe#299) Simplifies an early return + properly unsets currentView. Fixes KeepSafe#294 * Fix decor related issues (KeepSafe#300) This fixes issues relating to transparent nav bars, status bars and multi window mode. The library will now detect when the window it is attached to has a transparent system bar and properly adjust its clip bounds. Fixes KeepSafe#233 * Release 1.12.0 * Updated readme to reflect latest version
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version used:
1.11.0
Stack trace:
#0. Crashed: main: Fatal Exception: java.lang.NullPointerException: Attempt to read from null array
at com.getkeepsafe.taptargetview.TapTargetView$1.onUpdate(TapTargetView.java:241)
at com.getkeepsafe.taptargetview.TapTargetView$6.onUpdate(TapTargetView.java:308)
at com.getkeepsafe.taptargetview.FloatValueAnimatorBuilder$1.onAnimationUpdate(FloatValueAnimatorBuilder.java:75)
at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1346)
at android.animation.ValueAnimator.animateBasedOnTime(ValueAnimator.java:1258)
at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1306)
at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
at android.animation.AnimationHandler.-wrap2(AnimationHandler.java)
at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:925)
at android.view.Choreographer.doCallbacks(Choreographer.java:702)
at android.view.Choreographer.doFrame(Choreographer.java:635)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:913)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6692)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
Android version:
OS Version: 7.0
Device: Galaxy S7
Issue appears, when the TabTarget was started & not completed, and got returned from another activity
The text was updated successfully, but these errors were encountered: