-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Improve error message when adding null child to RenderBox #19226
Comments
/cc @Piinks |
Hey @matthew-carroll 👋 |
We'd have to go back to 2018 me to verify :) If you think it's resolved then feel free to close the issue. |
Sounds good to me! Thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I was working on a RenderBox subclass that takes in 2 optional children into its constructor. I forgot to check for null and therefore I was effectively calling
addChild(null)
. I received the following error which does not at all represent the issue. An error message should be provided that explains a null RenderBox cannot be added as a child.The text was updated successfully, but these errors were encountered: