Commit 126e7cff by Kazuyuki Hida

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

parent 7a83ef98
......@@ -21,8 +21,8 @@ public class AgreementToTermsJSON extends AcmsCommonJSON {
@Override
protected void parse(JSONObject json) throws JSONValidationException, JSONException {
super.parse(json);
termsVersion = json.getString(TERMS_VERSION);
terms = json.getString(TERMS);
termsVersion = json.has(TERMS_VERSION) ? json.getString(TERMS_VERSION) : "";
terms = json.has(TERMS) ? json.getString(TERMS) : "";
}
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