Skip to content

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

Open
rbares wants to merge 1 commit intoPulse-Eight:masterfrom
rbares:fix-cleared-input
Open

fixed: attempt to write null to registry after clearing ApplicationInput#8
rbares wants to merge 1 commit intoPulse-Eight:masterfrom
rbares:fix-cleared-input

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