CurrentWeather.java constructor has bug when creating new Snow object by passing it rainObj

Issue #10 resolved
Tim Boylan created an issue

CurrentWeather.java constructor has bug when creating new Snow object by passing it rainObj instead of snowObj.

        JSONObject snowObj = (jsonObj != null) ? jsonObj.optJSONObject(JSON_SNOW) : null;
        this.snow = (snowObj != null) ? new Snow(rainObj) : null;

Comments (2)

  1. Log in to comment