activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r396923 - /incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
Date Tue, 25 Apr 2006 17:15:01 GMT
Author: jstrachan
Date: Tue Apr 25 10:14:58 2006
New Revision: 396923

URL: http://svn.apache.org/viewcvs?rev=396923&view=rev
Log:
avoid NPE

Modified:
    incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java

Modified: incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java?rev=396923&r1=396922&r2=396923&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
(original)
+++ incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
Tue Apr 25 10:14:58 2006
@@ -199,6 +199,9 @@
         }
         if (value instanceof String[]) {
             String text = ((String[]) value)[0];
+            if (text == null) {
+                return null;
+            }
             return ActiveMQDestination.createDestination(text, ActiveMQDestination.QUEUE_TYPE);
         }
         return null;



Mime
View raw message