{"record":{"id":"2266d50de008a260","repo":"AlistGo/alist","slug":"link-cannot-be-nil","errorCode":null,"errorMessage":"link cannot be nil","messagePattern":"link cannot be nil","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/util.go","lineNumber":417,"sourceCode":"\t\treturn \"\", fmt.Errorf(\"failed to get signature verification keyring: %w\", err)\n\t}\n\n\tparentHashKey, err := parentLink.GetHashKey(parentNodeKR, signatureVerificationKR)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get parent hash key: %w\", err)\n\t}\n\n\tnameHash, err := proton.GetNameHash(name, parentHashKey)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to generate name hash: %w\", err)\n\t}\n\n\treturn nameHash, nil\n}\n\nfunc (d *ProtonDrive) getOriginalNameHash(link *proton.Link) (string, error) {\n\tif link == nil {\n\t\treturn \"\", fmt.Errorf(\"link cannot be nil\")\n\t}\n\n\tif link.Hash == \"\" {\n\t\treturn \"\", fmt.Errorf(\"link hash is empty\")\n\t}\n\n\treturn link.Hash, nil\n}\n\nfunc (d *ProtonDrive) getLink(ctx context.Context, linkID string) (*proton.Link, error) {\n\tif linkID == \"\" {\n\t\treturn nil, fmt.Errorf(\"linkID cannot be empty\")\n\t}\n\n\tlink, err := d.c.GetLink(ctx, d.MainShare.ShareID, linkID)\n\tif err != nil {\n\t\treturn nil, err\n\t}","sourceCodeStart":399,"sourceCodeEnd":435,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/util.go#L399-L435","documentation":"Error \"link cannot be nil\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/util.go:417 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the storage configuration and the provider's service status, fix the indicated cause, and retry the operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}