Skip to content

fix using null string in vector#7872

Merged
dbaileychess merged 1 commit intogoogle:masterfrom
phenixxy:master
Mar 24, 2023
Merged

fix using null string in vector#7872
dbaileychess merged 1 commit intogoogle:masterfrom
phenixxy:master

Conversation

@phenixxy
Copy link
Copy Markdown
Contributor

@phenixxy phenixxy commented Mar 20, 2023

Use 0 offset as special value. 0 offset is not a valid relative offset, so it's safe to use 0 offset to indicate value is null.

Fixes #7846

Use 0 offset as special value. 0 offset is not a valid relative offset, so it's safe to use 0 offset to indicate value is null.

google#7846
@google-cla
Copy link
Copy Markdown

google-cla bot commented Mar 20, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added the c# label Mar 20, 2023
@dbaileychess dbaileychess enabled auto-merge (squash) March 24, 2023 03:12
@dbaileychess dbaileychess merged commit 1cb1c4b into google:master Mar 24, 2023
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
Use 0 offset as special value. 0 offset is not a valid relative offset, so it's safe to use 0 offset to indicate value is null.

google#7846
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
Use 0 offset as special value. 0 offset is not a valid relative offset, so it's safe to use 0 offset to indicate value is null.

google#7846
@aardappel
Copy link
Copy Markdown
Collaborator

@dbaileychess this should be reverted.. we don't allow nulls in vectors.

jtdavis777 added a commit to jtdavis777/flatbuffers that referenced this pull request Dec 22, 2025
jtdavis777 added a commit that referenced this pull request Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C#][version 23.1.21] can't add null string in string vector (or zero offset in vector)

3 participants