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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix RichTextLabel crash with out of bound exception #68325
Fix RichTextLabel crash with out of bound exception #68325
Conversation
None of your builds seem to have to pass. Please do a rebase and try building it locally again to see if this is even valid. |
1ff2d39
to
00c4ad7
Compare
Rebase done, but I can see the warnings. I'll check if I can do something about them next week. |
is the error you're getting. |
00c4ad7
to
7117c87
Compare
7117c87
to
44592c8
Compare
While this would fix the crash, I'm not sure why we arrive in this state in the first place. It feels like there is some underlying problem (and of course the reported issue is completely artificial, which might be the reason for this weird state). But if @bruvzg approves, I think we can merge it as is. |
Thanks! |
Cherry-picked for 4.0.1. |
Fixes #68242.
I am not completely sure how the
_find_list
method works 馃槄 This check will stop the error from happening, but perhaps the iteration itself is not valid now. We are iterating overlist
andprev_item
and then using the index to accessframe->lines
, and I'm not sure if that process is correct. If this fix should be implemented differently, please let me know 馃槃