geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/net/protocol Protocols.java
Date Fri, 05 Sep 2003 04:47:45 GMT
dain        2003/09/04 21:47:45

  Modified:    modules/common/src/java/org/apache/geronimo/common/net/protocol
                        Protocols.java
  Log:
  Changed getHandlerPrackages to handle a null value from the system properties.
  
  Revision  Changes    Path
  1.7       +7 -2      incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/net/protocol/Protocols.java
  
  Index: Protocols.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/net/protocol/Protocols.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Protocols.java	3 Sep 2003 17:54:20 -0000	1.6
  +++ Protocols.java	5 Sep 2003 04:47:45 -0000	1.7
  @@ -118,7 +118,12 @@
       
       public static List getHandlerPackages()
       {
  -        return parseHandlerPackages(System.getProperty(HANDLER_PACKAGES));
  +        String handlersProperty = System.getProperty(HANDLER_PACKAGES);
  +        if (handlersProperty != null) {
  +            return parseHandlerPackages(handlersProperty);
  +        } else {
  +            return new LinkedList();
  +        }
       }
       
       public static void setHandlerPackages(final List packages)
  
  
  

Mime
View raw message