Skip to content

sort() may panic on nil maps #4813

@e-gineer

Description

@e-gineer

Description

Iterates over maps without nil checks. If struct not properly initialized via constructor, ranges panic.

Severity

LOW - Panic on improper initialization

Test Reference

TestAutocompleteSuggestionsNilMaps in pkg/interactive/autocomplete_test.go:240 (skipped)

Impact

Low - requires improper initialization bypassing constructor.

Related Code

  • pkg/interactive/autocomplete_suggestions.go:23-39

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions