Closed tcmicrosynetics closed 4 years ago
Also experiencing this on all Optionals
Investigating this, it turns out initialisation of Optional properties is required to solve this.
private Optional<String> subscriptionId = Optional.empty();
Long-read:
https://github.com/FasterXML/jackson-modules-java8/issues/36
@paulvaneijden Thanks for the investigation!
I will initialize all Optionals
Thanks, sounds great! If you need help reviewing let me know.
Deployed new version to bintray & synced with maven central
Maybe it's an idea to use milestones. Anyway, this fix is available in version 3.0.1.
I found this, when I wanted to get the subscription ID of a payment that was not part of a subscription. Please have a look at the following example code:
I would expect an empty Optional. Calling
isEmpty
throws a NullPointerException.