-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Check if child view != null before dropping #20465
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
CLA signed |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
This may resolve the crashes, but I think there's an underlying issue in Android 8.0 resulting in potentially broken UI. |
You think it's an underlying issue in Android 8.0 because it happen only on this version? There is also a possibility that in 8 were some changes and RN didn't make adjustments for it. |
You’re right, that’s a more probable scenario. I would suggest logging a warning if |
Log added. |
@chrusart I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project. |
@mkonicek hi, just mention you to get reviewer for this PR as bot says :) |
@hramos ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@chrusart merged commit af181fb into Once this commit is added to a release, you will see the corresponding version tag below the description at af181fb. If the commit has a single |
Summary: Fixes our top crash when framework try drop a view from parent, but it's a null (already removed etc.). Fixes facebook#20288 Pull Request resolved: facebook#20465 Differential Revision: D10113976 Pulled By: hramos fbshipit-source-id: 34f5654f3bdbc63eb7f7d0b5c94885576fc3cdcd
Summary: Fixes our top crash when framework try drop a view from parent, but it's a null (already removed etc.). Fixes facebook#20288 Pull Request resolved: facebook#20465 Differential Revision: D10113976 Pulled By: hramos fbshipit-source-id: 34f5654f3bdbc63eb7f7d0b5c94885576fc3cdcd
Fixes our top crash when framework try drop a view from parent, but it's a null (already removed etc.).
Fixes #20288
Test Plan:
No test plan, crashes happen rarely and very hard to reproduce.
Release Notes:
[ANDROID] [BUGFIX] [NativeViewHierarchyManager.java] - Fixes crash when trying to drop null child view