intercom-java icon indicating copy to clipboard operation
intercom-java copied to clipboard

"NullPointerException: name must not be null" occurred when retrieving a conversation if the author is lead.

Open ZekeLung opened this issue 6 months ago • 3 comments

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());

Image

Image

ZekeLung avatar May 13 '25 03:05 ZekeLung

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 avatar Jun 05 '25 12:06 romulus-ai

@romulus-ai can you share the updated OpenAPI you had? We can upstream your changes to ensure that the SDK is valid

dsinghvi avatar Jun 24 '25 16:06 dsinghvi

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.

romulus-ai avatar Aug 21 '25 09:08 romulus-ai