mirror of https://github.com/apache/activemq.git
avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@396503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c1b8e0410d
commit
a184831c30
|
@ -115,7 +115,11 @@ public abstract class MessageServletSupport extends HttpServlet {
|
|||
|
||||
|
||||
protected void appendParametersToMessage(HttpServletRequest request, TextMessage message) throws JMSException {
|
||||
Map parameters = new HashMap(request.getParameterMap());
|
||||
Map parameterMap = request.getParameterMap();
|
||||
if (parameterMap == null) {
|
||||
return;
|
||||
}
|
||||
Map parameters = new HashMap(parameterMap);
|
||||
String correlationID = asString(parameters.remove("JMSCorrelationID"));
|
||||
if (correlationID != null) {
|
||||
message.setJMSCorrelationID(correlationID);
|
||||
|
@ -160,6 +164,7 @@ public abstract class MessageServletSupport extends HttpServlet {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected Destination asDestination(Object value) {
|
||||
|
|
Loading…
Reference in New Issue