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

java.lang.NullPointerException in drawPeekingText #1067

Open
ape-report opened this Issue Mar 9, 2018 · 0 comments

Comments

1 participant
@ape-report

ape-report commented Mar 9, 2018

Reproduce:

  1. Launch app
  2. In List display options, set Swipe left to to None (default should be Save)
  3. Return to list
  4. Use your RIGHT hand to open the context menu for an item and then click Save.
  5. Use your LEFT hand to swipe from left on an item.
  6. Step 5 should be finished very quickly after the clicking of Save
// java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
// 	at io.github.hidroh.materialistic.widget.PeekabooTouchHelperCallback.drawPeekingText(PeekabooTouchHelperCallback.java:66)
// 	at io.github.hidroh.materialistic.widget.PeekabooTouchHelperCallback.onChildDraw(PeekabooTouchHelperCallback.java:57)
// 	at android.support.v7.widget.helper.ItemTouchHelper$Callback.onDraw(ItemTouchHelper.java:1957)
// 	at android.support.v7.widget.helper.ItemTouchHelper.onDraw(ItemTouchHelper.java:547)
// 	at android.support.v7.widget.RecyclerView.onDraw(RecyclerView.java:4078)
// 	at android.view.View.draw(View.java:16178)
// 	at android.support.v7.widget.RecyclerView.draw(RecyclerView.java:4013)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15174)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
// 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
// 	at android.view.View.updateDisplayListIfDirty(View.java:15134)
// 	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
// 	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
// 	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
// 	at android.view.ViewRootImpl.draw(ViewRootImpl.java:2615)
// 	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2434)
// 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
// 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
// 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
// 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
// 	at android.view.Choreographer.doCallbacks(Choreographer.java:670)
// 	at android.view.Choreographer.doFrame(Choreographer.java:606)
// 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
// 	at android.os.Handler.handleCallback(Handler.java:739)
// 	at android.os.Handler.dispatchMessage(Handler.java:95)
// 	at android.os.Looper.loop(Looper.java:148)
// 	at android.app.ActivityThread.main(ActivityThread.java:5417)
// 	at java.lang.reflect.Method.invoke(Native Method)
// 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
// 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment