Skip to content

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