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

Return nil when looking up non-existing products #241

Merged
merged 1 commit into from
Sep 8, 2017

Conversation

adamleff
Copy link
Contributor

@adamleff adamleff commented Sep 8, 2017

When calling PRODUCT_MATRIX.lookup for a product that does not exist,
we'd try to call the version method on nil, resulting in an "undefined
method" error. Now we return nil to the caller early before trying to
manipulate it.

Signed-off-by: Adam Leff adam@leff.co

When calling `PRODUCT_MATRIX.lookup` for a product that does not exist,
we'd try to call the `version` method on nil, resulting in an "undefined
method" error. Now we return nil to the caller early before trying to
manipulate it.

Signed-off-by: Adam Leff <adam@leff.co>
@adamleff adamleff requested a review from a team September 8, 2017 20:38
Copy link

@wrightp wrightp left a comment

Choose a reason for hiding this comment

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

thanks!

@wrightp wrightp requested a review from a team September 8, 2017 20:48
@wrightp wrightp merged commit 9ae6070 into master Sep 8, 2017
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

3 participants