forked from googleapis/google-cloud-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanner: Options: Fix null dereference, expand test coverage (googlea…
…pis#3706) The equals code does not handle the comparison of two Options objects where only one of them has either limit, pageSize or prefetchChunks defined. The argument to Object.equals() takes for instance limit() and this tries to deref the null to convert it to a long. Add hasXXX() checks before calling Object.equals(). This patch also removes functions that will not be called since they are internal. This expands coverage of Options to 100%.
- Loading branch information
1 parent
7499c31
commit d739242
Showing
2 changed files
with
136 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters