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

[Bug] ThreeScale::Core::AlertLimit.load_all - undefined method `map' for nil:NilClass #14

Open
Martouta opened this issue Sep 27, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@Martouta
Copy link
Contributor

Same bug as #13 but with AlertLimit instead of ServiceError.

In development locally, it raises this error when it does ThreeScale::Core::AlertLimit.load_all(backend_id)

I can bypass it by changing this line:

results[:attributes].map { |attrs| new(attrs) }

for:

(results[:attributes] || []).map { |attrs| new(attrs) }

So it is not urgent, but it is a bug that should be fixed anyway 😄

@Martouta Martouta added the bug Something isn't working label Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant