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

connector/sync: fix NPE when syncing channels #49

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

sumnerevans
Copy link
Member

Before this change syncChannels would NPE if inboxData.Conversations was
nil due to being omitted because it's empty.

This change ensures that the Conversations map is not nil before copying
to it.

Signed-off-by: Sumner Evans [email protected]

Before this change syncChannels would NPE if inboxData.Conversations was
nil due to being omitted because it's empty.

This change ensures that the Conversations map is not nil before copying
to it.

Signed-off-by: Sumner Evans <[email protected]>
@sumnerevans sumnerevans requested a review from tulir January 14, 2025 04:53
@tulir
Copy link
Member

tulir commented Jan 14, 2025

Why would more conversations be requested if there are none at all 🤔

@sumnerevans sumnerevans merged commit c36c257 into main Jan 14, 2025
11 checks passed
@sumnerevans sumnerevans deleted the fix-npe-sync-channels branch January 14, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants