Skip to content

Add nullptr checks for system tray.#81

Merged
HenryMiller1 merged 1 commit intoicecc:masterfrom
marwuint:master
Dec 7, 2025
Merged

Add nullptr checks for system tray.#81
HenryMiller1 merged 1 commit intoicecc:masterfrom
marwuint:master

Conversation

@marwuint
Copy link
Copy Markdown

@marwuint marwuint commented Dec 7, 2025

Icemon would segfault because m_systemTrayIcon wasn't initialized if a system tray wasn't available.
This commit adds checks to prevent access on nullptr.

@HenryMiller1
Copy link
Copy Markdown
Contributor

Tests for this would be nice, but I don't know how to write them

@HenryMiller1 HenryMiller1 merged commit e698e5e into icecc:master Dec 7, 2025
1 check passed
@marwuint
Copy link
Copy Markdown
Author

marwuint commented Dec 7, 2025

I'm sorry to bother you again so soon, but I forgot to include one check a874b13 . Should I open another PR? Thanks!

@HenryMiller1
Copy link
Copy Markdown
Contributor

You will need to open a pr

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.

2 participants