User: juhalindfors
  Date: 02/02/03 15:21:05

  Modified:    src/main/javax/management MBeanServerFactory.java
  Log:
  Don't add null to the returned list if no server instance were found. Return
  an empty list instead.
  
  Revision  Changes    Path
  1.4       +6 -2      jmx/src/main/javax/management/MBeanServerFactory.java
  
  Index: MBeanServerFactory.java
  ===================================================================
  RCS file: /cvsroot/jboss/jmx/src/main/javax/management/MBeanServerFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MBeanServerFactory.java   2002/01/28 23:33:06     1.3
  +++ MBeanServerFactory.java   2002/02/03 23:21:05     1.4
  @@ -22,7 +22,7 @@
    * @see javax.management.MBeanServer
    *
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>.
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    *   
    */
   public class MBeanServerFactory
  @@ -81,7 +81,11 @@
         if (agentId != null)
         {
            ArrayList list = new ArrayList(1);
  -         list.add(serverMap.get(agentId));
  +         Object server = serverMap.get(agentId);
  +         
  +         if (server != null)
  +            list.add(server);
  +            
            return list;
         }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to