diff --git a/validator/accounts/v2/wallet.go b/validator/accounts/v2/wallet.go index 8fa67294a..f2b38aa3d 100644 --- a/validator/accounts/v2/wallet.go +++ b/validator/accounts/v2/wallet.go @@ -700,6 +700,9 @@ func hasDir(dirPath string) (bool, error) { if os.IsNotExist(err) { return false, nil } + if info == nil { + return false, nil + } return info.IsDir(), err }