-
Notifications
You must be signed in to change notification settings - Fork 170
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
NullPointerException #44
Comments
Note: In their json respond api here Cheers |
@athkalia So this is still an issue. How did you deal with it? |
I made a fork that catches all exceptions and forwards them accordingly in the already existing onError listeners. It's this one. |
The same problem happens to me! How can I handle this? |
Hello, I am getting a NullPointerException from your library. Unfortunately the code is obfuscated so I can't trace it down 100%
Edit:
We are getting the exception because the response is a weird openweathermap response, error 401 that can't be parsed by your library. The easiest way to fix this is to catch NullpointExceptions and return an empty weather object.
The json we receive is:
{"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}
The text was updated successfully, but these errors were encountered: