Skip to content

fix: guard against nil remote branch in presentation layer#5371

Open
mango766 wants to merge 1 commit intojesseduffield:masterfrom
mango766:fix/nil-guard-remote-branch-render
Open

fix: guard against nil remote branch in presentation layer#5371
mango766 wants to merge 1 commit intojesseduffield:masterfrom
mango766:fix/nil-guard-remote-branch-render

Conversation

@mango766
Copy link

Adds a nil guard in GetRemoteBranchListDisplayStrings before accessing branch.FullName(). Prevents a nil pointer panic that can occur when the remote branch list contains stale nil entries during concurrent refresh operations.

Related: #5240
Closes #5370

Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.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.

Nil pointer panic in GetRemoteBranchListDisplayStrings

1 participant