activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1242793 - /activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java
Date Fri, 10 Feb 2012 14:41:45 GMT
Author: tabish
Date: Fri Feb 10 14:41:44 2012
New Revision: 1242793

URL: http://svn.apache.org/viewvc?rev=1242793&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQ-1899

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

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java?rev=1242793&r1=1242792&r2=1242793&view=diff
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java
(original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java
Fri Feb 10 14:41:44 2012
@@ -24,7 +24,7 @@ import org.apache.activemq.command.Activ
 import org.springframework.web.servlet.ModelAndView;
 
 /**
- * 
+ *
  */
 public class DestinationFacade {
 
@@ -108,16 +108,16 @@ public class DestinationFacade {
     }
 
     protected String getValidDestination() {
-        if (jmsDestination == null) {
+        if (jmsDestination == null || jmsDestination.isEmpty()) {
             throw new IllegalArgumentException("No JMSDestination parameter specified");
         }
         return jmsDestination;
     }
-    
+
     protected QueueViewMBean getQueueView() throws Exception {
         String name = getPhysicalDestinationName();
         return getBrokerFacade().getQueue(name);
-    }    
+    }
 
     protected ModelAndView redirectToRequest(HttpServletRequest request) {
         String view = "redirect:" + request.getRequestURI();
@@ -131,8 +131,8 @@ public class DestinationFacade {
     protected String getPhysicalDestinationName() {
         return createDestination().getPhysicalName();
     }
-    
+
     public String[] getSupportedHttpMethods() {
-    	return new String[]{"GET", "POST"};
+        return new String[]{"GET", "POST"};
     }
 }



Mime
View raw message