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

fixed: attempt to write null to registry after clearing ApplicationInput #8

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

Conversation

rbares
Copy link
Contributor

@rbares rbares commented Oct 5, 2019

Fixes #7.

Previously button mappings (ApplicationInput) were cleared by setting them to null, however when saving configuration this could easily result in an attempt to write null to the registry which would raise an exception. This diff clears ApplicationInput by clearing the inner _input list, enabling CECSettings to correctly write an empty string instead. This is correctly interpreted when read from the registry and avoids the crash.

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.

"Save configuration" crashes if a default button mapping has been cleared
1 participant