You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm noticing a NullPointerException when an IO error happens and I attempt to call the ApiException.getMessage method.
To reproduce
Trigger an IOException when using the java sdk. I'm triggering this using mock-server's withDropConnectionfeature.
Expected behavior
I should not see an NPE.
SDK version 13.0.0
Language version, developer tools
Java 17
OS/platform
M1 Mac
Additional context
I believe the issue is because when an IO errors happens, the headers are null and this line in ApiException is what throws the NPE.
Describe the bug
I'm noticing a
NullPointerException
when an IO error happens and I attempt to call theApiException.getMessage
method.To reproduce
Trigger an IOException when using the java sdk. I'm triggering this using mock-server's
withDropConnection
feature.Expected behavior
I should not see an NPE.
SDK version
13.0.0
Language version, developer tools
Java 17
OS/platform
M1 Mac
Additional context
I believe the issue is because when an IO errors happens, the headers are null and this line in
ApiException
is what throws the NPE.The text was updated successfully, but these errors were encountered: