Do not fail if "requestMappingConditions" is not JSON object

This commit is contained in:
BoykoAlex
2018-09-07 15:56:51 -04:00
parent 3963855d08
commit 68f54e42b5

View File

@@ -74,7 +74,7 @@ Example entry:
private JSONObject getRequestMappingConditions() {
JSONObject details = getDetails();
return details == null ? null : details.getJSONObject("requestMappingConditions");
return details == null ? null : details.optJSONObject("requestMappingConditions");
}
@Override