Merge branch 'BF-4051' of /home/git/repositories/brainfood/ofbiz-directcontrolservlet
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -129,7 +129,8 @@ public class DirectControlServlet extends HttpServlet { | ... | @@ -129,7 +129,8 @@ 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.getContentType().indexOf("x-www-form-urlencoded") != -1 && | ||
133 | request.getParameter("model") != null) { | 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"))); | ... | ... |
-
Please register or sign in to post a comment