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

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getLocationOnScreen(int[])' on a null object #159

Open
CY12 opened this issue Dec 25, 2021 · 0 comments

Comments

@CY12
Copy link

CY12 commented Dec 25, 2021

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getLocationOnScreen(int[])' on a null object reference
at com.hitomi.tilibrary.transfer.TransferState.getViewLocation(TransferState.java:63)
at com.hitomi.tilibrary.transfer.TransferState.createTransferImage(TransferState.java:78)
at com.hitomi.tilibrary.transfer.LocalThumbState.transferIn(LocalThumbState.java:75)
at com.hitomi.tilibrary.transfer.TransferLayout.show(TransferLayout.java:340)
at com.hitomi.tilibrary.transfer.Transferee.onShow(Transferee.java:193)
at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1414)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:179)
at android.app.ActivityThread.main(ActivityThread.java:5769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)

从 recyclerview getChildCount 中获取到child数量不正确 导致实际点击的pos 大于 originImageList size

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