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

Fix nested structures in NcStream #1196

Merged

Conversation

tdrwenski
Copy link
Member

@tdrwenski tdrwenski commented Jun 12, 2023

Description of Changes

If data had a structure within a structure, the inner structure's members wouldn't get set when read with the NcStreamReader (used by CdmRemote). This caused TDS integration test

thredds.server.cdmr.TestCdmRemoteCompareDataP.doOne[/share/testdata/cdmUnitTest/thredds-test-data/local/thredds-test-data/cdmUnitTest/formats/netcdf4/testNestedStructure.nc]

to fail with a nullptr exception. With this fix all the CdmRemote tests pass. There aren't any netcdf-java unit tests hitting this code as far as I could tell, but I ran the netcdf-java tests on Jenkins on this branch just in case.

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

@tdrwenski tdrwenski marked this pull request as ready for review June 12, 2023 20:13
@haileyajohnson haileyajohnson merged commit 49cf520 into Unidata:maint-5.x Jun 13, 2023
9 checks passed
@tdrwenski tdrwenski deleted the ncstream-nested-structures branch June 13, 2023 14:51
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

Successfully merging this pull request may close these issues.

None yet

2 participants