Skip to content

在update里面重新打开ui有概率会抛出NullReferenceException #22

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

Open
1260zqs opened this issue Apr 5, 2025 · 1 comment
Open

Comments

@1260zqs
Copy link

1260zqs commented Apr 5, 2025

在update里面重新打开ui有概率会抛出NullReferenceException

Image

Image

因为RefocusUIForm修改了m_UIFormInfos, 但没有更新m_CachedNode,
当这个ui有刚好是m_CachedNode下一次循环current.Next就会是空的

Image

ps: LinkedList移除的时候所有数据会被置空
Image

@AlianBlank
Copy link
Collaborator

你可以看看怎么修复,然后发起PR 请求

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

2 participants