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

doc: Add a comment that window may be NULL. #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szanni
Copy link
Contributor

@szanni szanni commented Dec 17, 2022

Apparently uiMenuItemOnClicked() may pass NULL as the window parameter under certain circumstances on darwin. At least that possibility is suggested here:

  • darwin/window.m:461
  • darwin/window.m:142

I added a @todo to the docs as well, as I am unaware of how to trigger such behavior. The code does handle that possibility though, so users need to be aware of the possibility to not trigger any NULL pointer derefs.

Apparently uiMenuItemOnClicked() may pass `NULL` as the `window`
parameter under certain circumstances on darwin. At least that
possibility is suggested here:
- darwin/window.m:461
- darwin/window.m:142

I added a @todo to the docs as well, as I am unaware of how to
trigger such behavior. The code does handle that possibility though,
so users need to be aware of the possibility to not trigger any
`NULL` pointer derefs.
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

1 participant