New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods that return NULL are flagged as @NonNull which annoys Kotlin #220
Comments
Hi, thanks for reporting this, we'll update it in the next release. |
Awesome, thank you! Really appreciate the quick reply. Two follow up questions:
|
Hi,
|
I see you changed this in 5.7 to not return NULL but to throw an exception instead. Still leaves me with a try / catch block instead of a null check. Is this the pattern I can expect to find in the rest of the library? |
We're deliberately throwing unchecked exception because we don't want you to try and catch it. In other places in our SDK, we have something similar, throwing |
Hi @MKevin3, Since this issue is inactive, we're closing it. If you need any further assistance feel free to open a new issue or contact us at support@microblink.com. Regards, |
This method is flagged as @nonnull but you can easily tell it returns a null making it not friendly to Kotlin. The code could use an update to make it more Kotlin friendly
The text was updated successfully, but these errors were encountered: