Do not crash on WebFlux handler functions data parsing

This commit is contained in:
BoykoAlex
2018-09-07 15:28:10 -04:00
parent 2a39071b50
commit 3963855d08

View File

@@ -62,7 +62,14 @@ Example entry:
private JSONObject getHandlerMethod() {
JSONObject details = getDetails();
return details == null ? null : details.getJSONObject("handlerMethod");
if (details != null) {
if (details.has("handlerMethod")) {
return details.getJSONObject("handlerMethod");
} else if (details.has("handlerFunction")) {
//TODO: handler function for the Router bean
}
}
return null;
}
private JSONObject getRequestMappingConditions() {