Eric Louvard wrote: > Hello while calling IndexReader.deletedoc(int) I am becomming a NPE. > > java.lang.NullPointerException > at > org.apache.lucene.index.IndexReader.acquireWriteLock(IndexReader.java:658) > at > org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:686) > > In the acquireWriteLock methode there is call > 'segmentInfos.getVersion()', but segmentInfos should be 'null'. > > I am working with the head revision from SVN. > > May someone tell me a work arround. > > regards, Éric Louvard. >
Hi Eric, could you please provide more information about how exactly you create the IndexReader? A unit test that hits this exception would be even better! Thanks, - Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]