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

fix crash in SetHeader if header is nil #756

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

tbuen
Copy link
Contributor

@tbuen tbuen commented Mar 22, 2021

To remove a header from a ListBoxRow, SetHeader is called with header == nil.
However this results in a runtime error (nil pointer dereference).
I fixed it with this commit. However, from definition of toWidget() I see that header.toWidget() should actually return nil. Why does that not work? Is there any better way to fix it?

@andre-hub andre-hub added this to the V0.6.0 milestone Mar 24, 2021
@andre-hub andre-hub merged commit abdbad6 into gotk3:master Mar 24, 2021
@tbuen tbuen deleted the fix-listbox-header branch March 25, 2021 17:22
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

2 participants