{"id":"ce057c26a6d72f47","repo":"docker/cli","slug":"nil-lister","errorCode":null,"errorMessage":"nil lister","messagePattern":"nil lister","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/context/store/store.go","lineNumber":123,"sourceCode":"\t\t},\n\t}\n}\n\n// ContextStore implements Store.\ntype ContextStore struct {\n\tmeta *metadataStore\n\ttls  *tlsStore\n}\n\n// List return all contexts.\nfunc (s *ContextStore) List() ([]Metadata, error) {\n\treturn s.meta.list()\n}\n\n// Names return Metadata names for a Lister\nfunc Names(s Lister) ([]string, error) {\n\tif s == nil {\n\t\treturn nil, errors.New(\"nil lister\")\n\t}\n\tlist, err := s.List()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tnames := make([]string, 0, len(list))\n\tfor _, item := range list {\n\t\tnames = append(names, item.Name)\n\t}\n\treturn names, nil\n}\n\n// CreateOrUpdate creates or updates metadata for the context.\nfunc (s *ContextStore) CreateOrUpdate(meta Metadata) error {\n\treturn s.meta.createOrUpdate(meta)\n}\n\n// Remove deletes the context with the given name, if found.","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/context/store/store.go#L105-L141","documentation":"Error \"nil lister\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/context/store/store.go:123 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}