Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.0-M4
-
Fix Version/s: 3.0.0-RC1
-
Component/s: Transport: HTTP(S) / Jetty
-
Labels:None
-
User impact:Medium
-
Similar Issues:None
Description
In org.mule.transport.http.transformers.HttpRequestBodyToParamMap, method public Object transform(MuleMessage message, String encoding), following code seems to be invalid:
boolean isUrlEncoded = contentType.startsWith("application/x-www-form-urlencoded");
It throws Null Exception when invoked with GET HTTP method.
Suggested change:
boolean isUrlEncoded = (contentType!=null)? contentType.startsWith("application/x-www-form-urlencoded") : false;