avoid NPE

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@396923 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-04-25 17:14:58 +00:00
parent b49145835c
commit 9477854858
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,9 @@ public abstract class MessageServletSupport extends HttpServlet {
}
if (value instanceof String[]) {
String text = ((String[]) value)[0];
if (text == null) {
return null;
}
return ActiveMQDestination.createDestination(text, ActiveMQDestination.QUEUE_TYPE);
}
return null;