Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nil pointer access #116

Merged
merged 2 commits into from Dec 19, 2022
Merged

Fix nil pointer access #116

merged 2 commits into from Dec 19, 2022

Conversation

Scapal
Copy link
Contributor

@Scapal Scapal commented Oct 24, 2022

Fix this issue:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x5b3310]

goroutine 1 [running]:
github.com/99designs/keyring.(*fileKeyring).resolveDir(0x7fa61e988400?)
        /Users/pfautre/Library/Go/pkg/mod/github.com/99designs/keyring@v1.2.1/file.go:48 +0x90
github.com/99designs/keyring.(*fileKeyring).Keys(0xc000280020?)
        /Users/pfautre/Library/Go/pkg/mod/github.com/99designs/keyring@v1.2.1/file.go:169 +0x2b
main.main()

Scapal and others added 2 commits October 24, 2022 11:59
Fix this issue: 
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x5b3310]

goroutine 1 [running]:
github.com/99designs/keyring.(*fileKeyring).resolveDir(0x7fa61e988400?)
        /Users/pfautre/Library/Go/pkg/mod/github.com/99designs/keyring@v1.2.1/file.go:48 +0x90
github.com/99designs/keyring.(*fileKeyring).Keys(0xc000280020?)
        /Users/pfautre/Library/Go/pkg/mod/github.com/99designs/keyring@v1.2.1/file.go:169 +0x2b
main.main()
```
@mtibben mtibben merged commit e63f6a1 into 99designs:master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants