mirror of https://github.com/apache/activemq.git
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:
parent
b49145835c
commit
9477854858
|
@ -199,6 +199,9 @@ public abstract class MessageServletSupport extends HttpServlet {
|
||||||
}
|
}
|
||||||
if (value instanceof String[]) {
|
if (value instanceof String[]) {
|
||||||
String text = ((String[]) value)[0];
|
String text = ((String[]) value)[0];
|
||||||
|
if (text == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return ActiveMQDestination.createDestination(text, ActiveMQDestination.QUEUE_TYPE);
|
return ActiveMQDestination.createDestination(text, ActiveMQDestination.QUEUE_TYPE);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue