Skip to content

Cannot invoke "Object.toString()" because the return value of "com.launchdarkly.api.ApiException.getResponseHeaders()" is null #16

Open
@alaa-nassef

Description

@alaa-nassef

In our project, our integration tests (making use of LaunchDarkly client API) are intermittently failing with the message Cannot invoke "Object.toString()" because the return value of "com.launchdarkly.api.ApiException.getResponseHeaders()" is null. We are not trying to log ApiException in any way, so the issue is coming from the SDK itself. Digging into this, the getMessage() implementation of ApiException does call this.getResponseHeaders().toString(), even though responseHeaders is initialized with null, so either responseHeaders should be initialized with an empty map, or getMessage() should handle the case of null

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions