Skip to content

Conversation

@souma987
Copy link
Contributor

Updates the generated Kotlin members for vector and string fields to have a nullable return type, unless the field is marked (required):

  • val <field>AsByteBuffer : ByteBuffer
  • fun <field>InByteBuffer(_bb: ByteBuffer) : ByteBuffer

The goldens files are not affected by this PR.

@github-actions github-actions bot added c++ codegen Involving generating code from schema kotlin labels Dec 13, 2025
@jtdavis777
Copy link
Collaborator

given this is a kotlin PR, I'd like to see if we can fix our kotlin mac os job before reviewing/merging this. Hopefully it's as simple as updating to a later macos runner.

@jtdavis777
Copy link
Collaborator

see #8845

@jtdavis777 jtdavis777 merged commit 60910fb into google:master Dec 14, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema kotlin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Kotlin] generated code: <field>AsByteBuffer throws NullPointerException when field is null

2 participants