Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

ForecastIO.hasXXX should also check if XXX is not empty #23

Open
shaiay opened this issue Apr 9, 2016 · 5 comments
Open

ForecastIO.hasXXX should also check if XXX is not empty #23

shaiay opened this issue Apr 9, 2016 · 5 comments

Comments

@shaiay
Copy link

shaiay commented Apr 9, 2016

Currently these methods only check if the object is non null, and if so, start querying it.
However if it's not null but empty this will fail. Adding a check of isEmpty will ix it

@jamesdesmond
Copy link

Would the change in ForecastIO.java look like:
public boolean hasCurrently(){ if(this.currently.isEmpty()) return false; else return true; }

@shaiay
Copy link
Author

shaiay commented Dec 28, 2016 via email

@dvdme
Copy link
Owner

dvdme commented Dec 28, 2016

I just pushed a commit to the dev branch with that change.

@shaiay
Copy link
Author

shaiay commented Dec 28, 2016 via email

@dvdme
Copy link
Owner

dvdme commented Dec 28, 2016

No problem. I've been setting up CI and unit tests só that changes don't take me so long to do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants