[TR-361] Trailing empty documents cause the classical indexer to NPE Created: 13/Nov/15  Updated: 01/Dec/15  Resolved: 13/Nov/15

Status: Resolved
Project: Terrier Core
Component/s: None
Affects Version/s: 4.0
Fix Version/s: 4.1

Type: Bug Priority: Minor
Reporter: Craig Macdonald Assignee: Craig Macdonald
Resolution: Fixed  
Labels: None


 Description   
java.lang.NullPointerException
at org.terrier.structures.bit.BitPostingIndexInputStream.loadPostingIterator(BitPostingIndexInputStream.java:243)
at org.terrier.structures.bit.BitPostingIndexInputStream.getNextPostings(BitPostingIndexInputStream.java:184)
at org.terrier.structures.indexing.classical.InvertedIndexBuilder.traverseDirectFile(InvertedIndexBuilder.java:525)
at org.terrier.structures.indexing.classical.InvertedIndexBuilder.createInvertedIndex(InvertedIndexBuilder.java:316)
at org.terrier.structures.indexing.classical.BasicIndexer.createInvertedIndex(BasicIndexer.java:429)
at org.terrier.structures.indexing.Indexer.index(Indexer.java:349)


 Comments   
Comment by Craig Macdonald [ 13/Nov/15 ]

Trivial fix to BitPostingIndexInputStream.

Comment by Craig Macdonald [ 13/Nov/15 ]

Committed to branch 4.1.

Generated at Thu Dec 14 02:38:59 GMT 2017 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.