CymChad / CymChad/BaseRecyclerViewAdapterHelper
nodeRemoveData接口删除最后一个节点的时候会挂掉
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
我使用NodeTreeAdapter做了3级树形试图,在使用nodeRemoveData接口删除SecondNode节点时,删除最后一个SecondNode节点总会导致程序挂掉,删除别的SecondNode节点不会,报错的内容总是IndexOutOfBoundsException,希望能修复这个bug,万分感谢!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the three-level NodeTreeAdapter case described in the issue: call nodeRemoveData to delete the last SecondNode and capture the IndexOutOfBoundsException. Compare it with deleting another SecondNode; done means the last-node deletion no longer crashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100