Skip to content
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

feat: support set nil for boundUntyped.Set() #4808

Merged
merged 1 commit into from Apr 28, 2024

Conversation

Dorbmon
Copy link
Contributor

@Dorbmon Dorbmon commented Apr 25, 2024

Description:

We should support setting nil for Untyped Binding. For the original code, when we pass nil for the Set function, it will call b.val.Set(reflect.ValueOf(nil)) which will panic due to the lack of type information of nil.

Fixes #4807

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent thanks for providing this improvement

@coveralls
Copy link

Coverage Status

coverage: 64.913% (+0.02%) from 64.898%
when pulling c5d0b32 on Dorbmon:4807
into 0b94408 on fyne-io:develop.

@andydotxyz andydotxyz merged commit d7081f6 into fyne-io:develop Apr 28, 2024
12 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants