User: juhalindfors
  Date: 02/04/08 20:01:56

  Modified:    src/main/org/jboss/mx/server/registry Tag: BranchMX_1_0
                        BasicMBeanRegistry.java
  Log:
  NPE fix for 1.0 release
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.4   +7 -1      
jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java
  
  Index: BasicMBeanRegistry.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java,v
  retrieving revision 1.9.2.3
  retrieving revision 1.9.2.4
  diff -u -r1.9.2.3 -r1.9.2.4
  --- BasicMBeanRegistry.java   20 Mar 2002 17:01:46 -0000      1.9.2.3
  +++ BasicMBeanRegistry.java   9 Apr 2002 03:01:55 -0000       1.9.2.4
  @@ -49,6 +49,7 @@
    * info@todo check garbage collection MBeanServer <--> Registry
    * info@todo make register/unregister into interceptors for custom
    *           processing add different stages of the process
  + * info@todo check race conditions for MT (un)registerMBean (uses long types)
    *
    * @see org.jboss.mx.server.registry.MBeanRegistry
    *
  @@ -400,10 +401,15 @@
      public synchronized MBeanEntry get(ObjectName name)
         throws InstanceNotFoundException
      {
  +      if (name == null)
  +         throw new InstanceNotFoundException("null object name");
  +         
         // Determine the domain and retrieve its entries
         String domain = name.getDomain();
  +      
         if (domain.length() == 0)
            domain = defaultDomain;
  +      
         String props = name.getCanonicalKeyPropertyListString();
         Map mbeanMap = (Map) domainMap.get(domain);
   
  
  
  

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

Reply via email to