lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Burton" <>
Subject Patch for IndexWriter.close which prevents NPE...
Date Fri, 03 Sep 2004 18:51:02 GMT
I just attached a patch which:

1. prevents multiple close() of an IndexWriter

2. prevents an NPE if the writeLock was null.

We have been noticing this from time to time and I haven't been able to 
come up with a hard test case.  This is just a bit of defensive 
programming to prevent it from happening in the first place.  It would 
happen from time to time without any reliable cause.





Please reply using PGP.    
    NewsMonster -
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
       AIM/YIM - sfburtonator,  Web -
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
  IRC - #infoanarchy | #p2p-hackers | #newsmonster

View raw message