val result = mergeApiClient.hris().employees().list(
EmployeesListRequest.builder().build(),
RequestOptions.builder()
.accountToken("token-here")
.build()
)
When I run this, I encounter the following error
java.lang.NullPointerException: Cannot invoke "java.util.Optional.isPresent()" because the return value of "com.merge.api.core.RequestOptions.getTimeout()" is null
at com.merge.api.resources.hris.employees.EmployeesClient.list(EmployeesClient.java:183)
I'm testing the SDK in my Kotlin project, like so
When I run this, I encounter the following error
I believe that this can be fixed if the default value for
timeout
inRequestOptions
is changed fromnull
toOptional.empty()