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

Fix a NPE #57

Merged
merged 1 commit into from
Aug 11, 2024
Merged

Fix a NPE #57

merged 1 commit into from
Aug 11, 2024

Conversation

ogaclejapan
Copy link
Contributor

@ogaclejapan ogaclejapan commented Aug 11, 2024

An error occurred when the return value of Query/Mutation nullable key(fetch/mutate) was Null.

@ogaclejapan ogaclejapan added the bug Something isn't working label Aug 11, 2024
@ogaclejapan ogaclejapan merged commit b9d20fc into main Aug 11, 2024
1 check passed
@ogaclejapan ogaclejapan deleted the fix_npe branch August 11, 2024 00:24
ogaclejapan added a commit that referenced this pull request Aug 17, 2024
There was an issue in the Soil Query code where forced unwrapping was being used, which was addressed in PR #57 recently.
In this PR, I have revisited the handling of nullable data types, identified as the root cause, and introduced a new `Reply<T>` type to eliminate the mismatch between `T?` and the type definition expected by users.

Since the existing `data` property is likely referenced by users, the Reply model has been defined under a different property name to maintain backward compatibility.

- data  (unchanged)
- dataUpdatedAt -> replyUpdatedAt  (change)
- reply (new)

refs: #57
@github-actions github-actions bot mentioned this pull request Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant