innerfunction / pttn-and

0 stars 0 forks source link

Play store crash report: NPE in ATableViewCell.setPressed #1

Open juliangoacher opened 7 years ago

juliangoacher commented 7 years ago

Following stack trace is because ATableViewCell instance gets null when calling getParentView() - how can a view which is capable of handling a touch event have a null parent?

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.nakardo.atableview.view.ATableView.getAllowsSelection()' on a null object reference at com.nakardo.atableview.view.ATableViewCell.setPressed(ATableViewCell.java:134) at android.widget.ListView.setupChild(ListView.java:2024) at android.widget.ListView.makeAndAddView(ListView.java:1963) at android.widget.ListView.fillDown(ListView.java:704) at android.widget.ListView.fillSpecific(ListView.java:1412) at android.widget.ListView.layoutChildren(ListView.java:1755) at android.widget.AbsListView.onTouchUp(AbsListView.java:4014) at android.widget.AbsListView.onTouchEvent(AbsListView.java:3807) at android.view.View.dispatchTouchEvent(View.java:10023) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2626) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2307) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:413) at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1808) at android.app.Activity.dispatchTouchEvent(Activity.java:3061) at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:375) at android.view.View.dispatchPointerEvent(View.java:10243) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4438) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4306) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3999) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3880) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4056) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3880) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6246) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6220) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6181) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6349) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:323) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

juliangoacher commented 7 years ago

Problem is probably with the list adapter, see following:

sd2020 commented 7 years ago

Hi, I have the similar issue as well with ADataTable where randomly happens, curious to know do you have any resolution yet?

juliangoacher commented 7 years ago

@sd2020 I haven't looked at this issue since my previous comment, but the problem is almost certainly to do with the data behind the list adapter.

sd2020 commented 7 years ago

Appreciate your message, I will keep investigate on this issue. Randomly happen in S7, and LG, but all other devices is fine. Make debugging extreme hard... Worse case have to remove ADataTable view and write my own... I will keep you posted in case find any solutions or reasons.. Thank you.

On Thu, Mar 2, 2017 at 11:57 PM, Julian Goacher notifications@github.com wrote:

@sd2020 https://github.com/sd2020 I haven't looked at this issue since my previous comment, but the problem is almost certainly to do with the data behind the list adapter.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/innerfunction/pttn-and/issues/1#issuecomment-283622615, or mute the thread https://github.com/notifications/unsubscribe-auth/AHWa1r6-XnWZMSQrpSl5ZTAvHViFnFxEks5rhqCygaJpZM4LwD17 .

--

Best Regards,

Terry

juliangoacher commented 7 years ago

ok thanks