Skip to content

ERROR: invalid memory address or nil pointer dereference #160

@littlestar2023

Description

@littlestar2023

etcd.go line 124, code as following:
cli, err := clientv3.New(config)
if err != nil {
return err
}
e.client = cli
when etcd auth failed, clientv3.New(config) will returns an error, then e.client will be set as nil.
coming logic use this client object , then null point error will occured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions