intercom-java
intercom-java copied to clipboard
"NullPointerException: name must not be null" occurred when retrieving a conversation if the author is lead.
when the conversation author type is lead, 'data.conversation_parts.conversation_parts[].author.name' will be null , and "NullPointerException: name must not be null" occurred.
Conversation conversation = client.conversations().find(FindConversationRequest.builder().conversationId(conversationId).build());
Not the only point, I had so much fields which where null and its not allowed that I decided to generate it on my own via openapi-cli. Then I fixed all the parts I needed and which where not working manually.. Was now around 4 hours of work but at least I have something that works..
@romulus-ai can you share the updated OpenAPI you had? We can upstream your changes to ensure that the SDK is valid
I am Sorry, I only have adjusted the generated code not the OpenAPI Definition. And the generated code is meanwhile thigtly bound in our project.