Merge pull request #5605 from cannist/cannist/fix-npe

Fix nil pointer exception in codespace selection
This commit is contained in:
Mislav Marohnić 2022-05-10 18:11:10 +02:00 committed by GitHub
commit c26ff6ac9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ func chooseCodespaceFromList(ctx context.Context, codespaces []*api.Codespace) (
codespacesNames[seenCodespace.idx] = fullDisplayNameWithGitStatus
// Update the git status dirty map to reflect the new name.
if cs.hasUnsavedChanges() {
if seenCodespace.cs.hasUnsavedChanges() {
codespacesDirty[fullDisplayNameWithGitStatus] = true
}