-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Should we check nil pointer query in dataselect #9262
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@warjiang are you willing to work on it? |
Yes, I think it should check the nil pointer, but no repsonse or no more discussion about it. Should I make contribution and ask for some review the changes? |
@warjiang Yes, that would be perfect. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
What would you like to be added?
The
dataselect
is well designed to filter、sort、paginate datacells. I want to reuse thedataselect
module in my project. But I metioned thatFilterQuery
、SortQuery
、PaginationQuery
may be nil and cause panic error, for examplewhen we iterate
self.DataSelectQuery.FilterQuery.FilterByList
, if theFilterQuery
is nil, it will panic.The use-case of my code is following:
Apart from QueryFilter, the
DataSelectQuery
should also be checked to avoid nil pointer error.Why is this needed?
For more robust, when the
dataselect
pkg is resued by other project.Tasks
The text was updated successfully, but these errors were encountered: