We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current implementations of Value.Type() can return a Type referencing a nil pointer.
Value.Type()
This can make callers deference the nil pointer.
Implementations of Value.Type() should return nil instead of a reference to a nil pointer.
nil
Change Type() to check and return nil Type, instead of Type referencing nil pointer for these external values:
Dictionary
Struct
Resource
Attachment
Event
Contract
Enum
Function
The text was updated successfully, but these errors were encountered:
fxamacker
Successfully merging a pull request may close this issue.
Issue to be solved
Current implementations of
Value.Type()
can return a Type referencing a nil pointer.This can make callers deference the nil pointer.
Suggested Solution
Implementations of
Value.Type()
should returnnil
instead of a reference to a nil pointer.Change Type() to check and return nil Type, instead of Type referencing nil pointer for these external values:
Dictionary
Struct
Resource
Attachment
Event
Contract
Enum
Function
The text was updated successfully, but these errors were encountered: