avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/collections/src/java/org/apache/avalon/excalibur/collections BucketMap.java
Date Thu, 27 Jun 2002 01:22:14 GMT
bloritsch    2002/06/26 18:22:14

  Modified:    collections/src/java/org/apache/avalon/excalibur/collections
                        BucketMap.java
  Log:
  fix NPE reported by Vadim
  
  Revision  Changes    Path
  1.21      +5 -1      jakarta-avalon-excalibur/collections/src/java/org/apache/avalon/excalibur/collections/BucketMap.java
  
  Index: BucketMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/collections/src/java/org/apache/avalon/excalibur/collections/BucketMap.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- BucketMap.java	27 Jun 2002 01:10:56 -0000	1.20
  +++ BucketMap.java	27 Jun 2002 01:22:13 -0000	1.21
  @@ -357,6 +357,10 @@
                       {
                           // This node was the head, set the next node to be the new head.
                           m_buckets[ hash ] = n.next;
  +			if ( m_buckets[hash] == null )
  +			{
  +			    m_buckets[hash] = new Node();
  +			}
                       }
                       else
                       {
  
  
  

--
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