Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-361

Trailing empty documents cause the classical indexer to NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: None
    • 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)

        Attachments

          Activity

          Hide
          craigm Craig Macdonald added a comment -

          Trivial fix to BitPostingIndexInputStream.

          Show
          craigm Craig Macdonald added a comment - Trivial fix to BitPostingIndexInputStream.
          Hide
          craigm Craig Macdonald added a comment -

          Committed to branch 4.1.

          Show
          craigm Craig Macdonald added a comment - Committed to branch 4.1.

            People

            • Assignee:
              craigm Craig Macdonald
              Reporter:
              craigm Craig Macdonald
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: