baoyongzhang / baoyongzhang/SwipeMenuListView
getChildAt(position) null pointer exception
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
If I try to change (in custom listView) TextView bg color using myListView.getChildAt(position) I get NullPointerException on position greater than 10.
Also position lower than 10 bg color is applied to all items + 10
IE: if the position in 3, the bg color is applied on items 3, 13, 23, 33, etc...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the custom ListView behavior at positions below and above 10, focusing on the myListView.getChildAt(position) entry point. Confirm the expected background behavior for recycled rows and ensure positions beyond the visible range no longer cause a null pointer exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100