Commit 126e7cff by Kazuyuki Hida

レスポンスの受け取り方を修正

parent 7a83ef98
...@@ -21,8 +21,8 @@ public class AgreementToTermsJSON extends AcmsCommonJSON { ...@@ -21,8 +21,8 @@ public class AgreementToTermsJSON extends AcmsCommonJSON {
@Override @Override
protected void parse(JSONObject json) throws JSONValidationException, JSONException { protected void parse(JSONObject json) throws JSONValidationException, JSONException {
super.parse(json); super.parse(json);
termsVersion = json.getString(TERMS_VERSION); termsVersion = json.has(TERMS_VERSION) ? json.getString(TERMS_VERSION) : "";
terms = json.getString(TERMS); terms = json.has(TERMS) ? json.getString(TERMS) : "";
} }
public String getTermsVersion() { public String getTermsVersion() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment