commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsi...@apache.org
Subject cvs commit: jakarta-commons/discovery/src/java/org/apache/commons/discovery/base SPInterface.java
Date Thu, 22 Aug 2002 23:07:22 GMT
rsitze      2002/08/22 16:07:22

  Modified:    discovery/src/java/org/apache/commons/discovery/base
                        SPInterface.java
  Log:
  fix bug for null impl
  
  Revision  Changes    Path
  1.4       +6 -2      jakarta-commons/discovery/src/java/org/apache/commons/discovery/base/SPInterface.java
  
  Index: SPInterface.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/discovery/src/java/org/apache/commons/discovery/base/SPInterface.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SPInterface.java	21 Aug 2002 22:48:46 -0000	1.3
  +++ SPInterface.java	22 Aug 2002 23:07:22 -0000	1.4
  @@ -190,7 +190,9 @@
        * if set, the constructor type/object arguments.
        */    
       public ImplClass createImplClass(String className) {
  -        return new ImplClass(getSPClass(), className, paramClasses, params);
  +        return (className == null)
  +               ? null
  +               : new ImplClass(getSPClass(), className, paramClasses, params);
       }
   
       /**
  @@ -198,6 +200,8 @@
        * if set, the constructor type/object arguments.
        */    
       public ImplClass createImplClass(Class clazz) {
  -        return new ImplClass(getSPClass(), clazz, paramClasses, params);
  +        return (clazz == null)
  +               ? null
  +               : new ImplClass(getSPClass(), clazz, paramClasses, params);
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message