-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't return null for non-nullable Blobs in Java
Updated JNI conversion function for non-nullable Blobs to avoid returning `null` when the C++ function returns a null shared pointer. Having a null shared pointer coming from C++ when the type is specified as non-nullable in the IDL is a violation of contract. The correct fix for this issue would be to change `Blob` representation from `shared_ptr<vector>` to something that cannot be `null`. However, this would be a breaking change, so it has to be done later (#934). For now it's just the small JNI workaround. Resolves: #929 Signed-off-by: Daniel Kamkha <[email protected]>
- Loading branch information
1 parent
6574ee5
commit df23fd0
Showing
6 changed files
with
40 additions
and
5 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
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
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