Merge branch 'BF-4051' of /home/git/repositories/brainfood/ofbiz-directcontrolservlet
Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -129,8 +129,9 @@ public class DirectControlServlet extends HttpServlet { | ... | @@ -129,8 +129,9 @@ public class DirectControlServlet extends HttpServlet { |
129 | } | 129 | } |
130 | } else { | 130 | } else { |
131 | // Check if the request is a backbone style "emulateJSON" request | 131 | // Check if the request is a backbone style "emulateJSON" request |
132 | if (request.getContentType().indexOf("x-www-form-urlencoded") != -1 && | 132 | if (request.getContentType() != null && |
133 | request.getParameter("model") != null) { | 133 | request.getContentType().indexOf("x-www-form-urlencoded") != -1 && |
134 | request.getParameter("model") != null) { | ||
134 | Debug.logInfo("MODEL: " + request.getParameter("model"), module); | 135 | Debug.logInfo("MODEL: " + request.getParameter("model"), module); |
135 | JSON json = new JSON(new StringReader(request.getParameter("model"))); | 136 | JSON json = new JSON(new StringReader(request.getParameter("model"))); |
136 | Map<String,Object> items = json.JSONObject(); | 137 | Map<String,Object> items = json.JSONObject(); | ... | ... |
-
Please register or sign in to post a comment