avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/extension DefaultPackageRepository.java
Date Sat, 15 Jun 2002 07:19:21 GMT
mcconnell    2002/06/15 00:19:21

  Modified:    extension/src/java/org/apache/avalon/excalibur/extension
                        DefaultPackageRepository.java
  Log:
  ArrayIndexOutOfBounds trap - probably needs more from someone who knows the package
  
  Revision  Changes    Path
  1.15      +6 -1      jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/extension/DefaultPackageRepository.java
  
  Index: DefaultPackageRepository.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/extension/DefaultPackageRepository.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DefaultPackageRepository.java	10 May 2002 02:51:14 -0000	1.14
  +++ DefaultPackageRepository.java	15 Jun 2002 07:19:21 -0000	1.15
  @@ -200,6 +200,11 @@
       protected final synchronized void cacheOptionalPackage( final OptionalPackage optionalPackage
)
       {
           m_needToScan = false;
  +
  +        // SJM: added to avoid out of bounds exception - pending validation
  +        if( optionalPackage.getAvailableExtensions().length > 0 )
  +            return;
  +
           final Extension extension = optionalPackage.getAvailableExtensions()[ 0 ];
           ArrayList candidates = (ArrayList)m_packages.get( extension.getExtensionName()
);
           if( null == candidates )
  
  
  

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


Mime
View raw message