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:
James Strachan 2006-04-24 10:29:49 +00:00
parent c1b8e0410d
commit a184831c30
1 changed files with 6 additions and 1 deletions

View File

@ -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) {