Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong nil array #2

Open
eduardbosch opened this issue May 24, 2018 · 0 comments
Open

Wrong nil array #2

eduardbosch opened this issue May 24, 2018 · 0 comments

Comments

@eduardbosch
Copy link

Hi,

I've found a bug that causes an array to be nil when it shouldn't be.

Suppose the following scheme:

table Info {
    x:int;
    y:int;
    byteArray:[byte];
    floatArray:[float];
    unsignedByteArray:[ubyte];
}

root_type Info;

If the unsignedByteArray is nil, but the floatArray it's not nil, it causes the floatArrayto be nil. It seems that this library does not allow optional values, or does not read them correctly.

FlatBuffers allows adding new fields that could be nil without affecting previous ones.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant