Skip to content

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Jul 7, 2025

Fixes crash when accessing string keys with a null value

  • Throw NotImplementedError directly in byKey if a DataStoreValue for the given key is not found.
  • Remove redundant NotImplementedError throws in getter/setter methods as byKey now handles this.
  • Simplify getter/setter logic by removing nullable checks, relying on byKey's non-null return or exception.

Fixes crash when accessing string keys with a null value

- Throw `NotImplementedError` directly in `byKey` if a `DataStoreValue` for the given key is not found.
- Remove redundant `NotImplementedError` throws in getter/setter methods as `byKey` now handles this.
- Simplify getter/setter logic by removing nullable checks, relying on `byKey`'s non-null return or exception.
@d4rken d4rken added the bug Something isn't working as expected label Jul 7, 2025
@d4rken d4rken merged commit 64d37d6 into main Jul 19, 2025
16 checks passed
@d4rken d4rken deleted the settings-crash-fix branch July 19, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants