Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 Zip-File indexing does not work: Null pointer exception

v1.0 (example)
closed
nobody
None
5
2006-10-24
2006-10-02
Anonymous
No

Hi there,

I tried to index a ZIP file.
The IndexerFactory correctly figures out that it is a
ZIP archive. The call to ZIPIndexer.index() throws a
null pointer exception. It tries to
getPopulatedLiusFields() which writes a nice message
("Pour des raisons de performance cette méthode n'a pas
été implémentée") and returns null. By the way and
because my french is not that good: why did it not get
implemented?

The method Indexer.populateLuceneDoc() returns a null
pointer instead of a lucene document when it gets a
null as input. The rest of the Indexer.index() code can
not handle a lucene document that is really a null
pointer and tries to access this document. This results
in the exception.

I think ZIPIndexer.getPopulatedLiusFields() should
throw a not-implemented exception or return an empty
collection.

Kind regards,

Christian Burkamp

(c dot burkamp at ceyoniq dot com)

Discussion

    • status: open --> closed