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
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 logApiExceptionin any way, so the issue is coming from the SDK itself. Digging into this, thegetMessage()implementation ofApiExceptiondoes callthis.getResponseHeaders().toString(), even thoughresponseHeadersis initialized withnull, so eitherresponseHeadersshould be initialized with an empty map, orgetMessage()should handle the case of null