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: null pointer in updateHasSynced #118

Merged
merged 5 commits into from
Feb 10, 2025

Conversation

DominicGBauer
Copy link
Contributor

@DominicGBauer DominicGBauer commented Feb 10, 2025

Description

Fix issue in updateHasSynced where null timestamp was allowed through. The issue was that currentStatus.hasSynced is initialized to null and not false so this check if (hasSynced != currentStatus.hasSynced) was always true.

Testing

Tested in Swift SDK and ran the supabase todolist app

@DominicGBauer DominicGBauer changed the title fix: revert updateHasSynced change that removed null pointer handling fix: null pointer in updateHasSynced Feb 10, 2025
stevensJourney
stevensJourney previously approved these changes Feb 10, 2025
@DominicGBauer DominicGBauer merged commit 0cc9bc9 into main Feb 10, 2025
3 checks passed
@DominicGBauer DominicGBauer deleted the fix/null-pointer-in-update-has-synced-regression branch February 10, 2025 13:34
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