Skip to content

Commit

Permalink
Catch NPE introduced in recent commit. (#816)
Browse files Browse the repository at this point in the history
* Catch NPE introduced in recent commit.

* Update known issues.
  • Loading branch information
Ryan Clancy authored Sep 27, 2019
1 parent 3e7b85b commit 49a548a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/known-issues/known-issues-v0.6.0.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Anserini Known Issues (v0.6.0)

+ Solr indexing for Washington Post broke due to [417ac12](https://github.com/castorini/anserini/commit/c5ee9af442c500ec43fc28808903cfca2417ac12) and has been fixed in [#807](https://github.com/castorini/anserini/pull/807) and [#809](https://github.com/castorini/anserini/pull/809).
+ Solr indexing for Washington Post broke due to [417ac12](https://github.com/castorini/anserini/commit/c5ee9af442c500ec43fc28808903cfca2417ac12) and has been fixed in [#807](https://github.com/castorini/anserini/pull/807) and [#809](https://github.com/castorini/anserini/pull/809).
+ SearchSolr is broken due to [72b8052](https://github.com/castorini/anserini/commit/ca253a4794b5f5bea38749bd40e5f9f4272b8052) and has been fixed in [#816](https://github.com/castorini/anserini/pull/816).
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ScoreTiesAdjusterReranker implements Reranker {
@Override
public ScoredDocuments rerank(ScoredDocuments docs, RerankerContext context) {

if (context.getSearchArgs().arbitraryScoreTieBreak) {
if (context != null && context.getSearchArgs().arbitraryScoreTieBreak) {
return docs;
}

Expand Down

0 comments on commit 49a548a

Please sign in to comment.