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

一个下标越界引起的崩溃问题 #474

Open
AiweiChujian opened this issue Mar 25, 2023 · 1 comment
Open

一个下标越界引起的崩溃问题 #474

AiweiChujian opened this issue Mar 25, 2023 · 1 comment

Comments

@AiweiChujian
Copy link

image
JXSegmentedListContainerView 的第 479 行,判断逻辑似乎有问题,有时切换列表会出现,willAppearIndex == 0, willDisappearIndex == -1 的情况,然后以 -1 下标去取 dataSource,会引起崩溃,这儿是不是应该用&&,而不是||

@AiweiChujian
Copy link
Author

image

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