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

JRI: arrays of length < 1 are returned as NULL #271

Open
s-u opened this issue Jul 18, 2021 · 1 comment
Open

JRI: arrays of length < 1 are returned as NULL #271

s-u opened this issue Jul 18, 2021 · 1 comment

Comments

@s-u
Copy link
Owner

s-u commented Jul 18, 2021

jri_getXxArray() functions treat arrays of length 0 as NULL. This seems deliberate in the code, but it is inconsistent as R is perfectly capable of representing 0-length arrays. This has been the case for more than a decade so it is unclear if making this consistent will break other's code so we may want to tread lightly.

@yudalang3
Copy link

I also think, not to change is the better solution. Such thing aslo happen in base R.

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

2 participants