Null value dereference [LUCENE-6628]
Open
affects-version:6.0
legacy-jira-fix-version:6.0
legacy-jira-label:github-pullrequest
legacy-jira-priority:Minor
module:queryparser
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
In the file `SlopQueryNode.java`, the values returned `getChild()` and `getChildren()` could be null. Further operations on them could result in null pointer exceptions.
Fix by adding checks for null to the values returned by `getChild()` and `getChildren()`.
---
Migrated from [LUCENE-6628](https://issues.apache.org/jira/browse/LUCENE-6628) by Rishabh Patel, updated May 09 2016
Contributor guide
Research direction
Start by reading SlopQueryNode.java and trace the operations using values returned by getChild() and getChildren(). The work is done when null returns are handled without null pointer exceptions during subsequent operations.
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
- 48/100