-
Notifications
You must be signed in to change notification settings - Fork 323
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
NPE in getAccountInfo() if result is nil #45
Comments
How about if out == nil || out.Value == nil { but in that case, can we be sure that |
imo, |
In some cases, |
if out == nil {
return nil, errors.New("expected a value, got null response")
} |
If a non-compliant RPC server returns
result: null
for getAccountInfo(), the client will panic with null pointer deref (line 127 onout.Value
becauseout
isnil
).solana-go/rpc/getAccountInfo.go
Lines 123 to 127 in dd0af95
Ideally the RPC client would never panic under any circumstances
The text was updated successfully, but these errors were encountered: