java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getLocationOnScreen(int[])' on a null object
CY12 opened this issue · comments
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