Skip to content

CreateConversation: don't crash on comment with no user#317

Open
robn wants to merge 1 commit intogoogle:masterfrom
robn:fix-comment-no-user-crash
Open

CreateConversation: don't crash on comment with no user#317
robn wants to merge 1 commit intogoogle:masterfrom
robn:fix-comment-no-user-crash

Conversation

@robn
Copy link
Copy Markdown

@robn robn commented Feb 16, 2026

A comment can have "no" user, usually from the "ghost" placeholder user when the originally commenter deleted their Github account.

Use the GetUser() and GetLogin() accessors rather than dereferencing User directly to avoid a segfault.

Fixes #306.

A comment can have "no" user, usually from the "ghost" placeholder user
when the originally commenter deleted their Github account.

Use the GetUser() and GetLogin() accessors rather than dereferencing
User directly to avoid a segfault.

Fixes google#306.

Signed-off-by: Rob Norris <robn@despairlabs.com>
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.

Consistent segmentation violation with pypa/pip and a minimal configuration

1 participant