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 dereference in jobobject.Create and Open #954

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

dcantah
Copy link
Contributor

@dcantah dcantah commented Feb 26, 2021

If nil options were passed for Create or Open both methods would run into a
nil dereference even though for Create it states that it will just use default options.

For Open you can't open without a name so if nil options are passed just return an error.

Signed-off-by: Daniel Canter [email protected]

If nil options were passed for `Create` or `Open` both methods would run into a
nil dereference even though for `Create` it states that it will just use default options.

For `Open` you can't open without a name so if nil options are passed just return an error.

Signed-off-by: Daniel Canter <[email protected]>
@dcantah dcantah requested a review from a team as a code owner February 26, 2021 10:47
Copy link
Member

@kevpar kevpar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants