I think this is something you just shouldn't do?

Ie, if you call Document.addField(null), it is silently accepted and then causes that exception when added the document, but my feeling is you shouldn't do that.

Mike

kai.hu wrote:

i got a problem yesterday,
java.lang.NullPointerException
at org.apache.lucene.index.DocumentsWriter$ThreadState.init (DocumentsWriter.java:751) at org.apache.lucene.index.DocumentsWriter.getThreadState (DocumentsWriter.java:2391) at org.apache.lucene.index.DocumentsWriter.updateDocument (DocumentsWriter.java:2434) at org.apache.lucene.index.DocumentsWriter.addDocument (DocumentsWriter.java:2422) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java: 1445) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java: 1424)

so i debug the code ,found if the document add a null Field,it will throw this Exception.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to