Potential null pointer exceptions [LUCENE-6623]
Open
affects-version:6.0
legacy-jira-fix-version:6.0
legacy-jira-label:github-pullrequest
legacy-jira-priority:Minor
module:analysis
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
In the file `Trie.java`, `getRow()` can return null. Further operations on the returned null, will result in null pointer exceptions.
Fix by checking for null.
---
Migrated from [LUCENE-6623](https://issues.apache.org/jira/browse/LUCENE-6623) by Rishabh Patel, updated May 09 2016
Contributor guide
Research direction
Start in Trie.java at getRow() and inspect the operations that use its return value. Done means a null result is handled without causing a null pointer exception, with the relevant Lucene tests passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100