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

External Exporters bug fix #9632

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented May 31, 2023

What this PR does / why we need it: When there is no weight variable (which is tested in an IT test but not a unit test), the code give an NPE. This PR checks for a null response in getWeghtvariable() to avoid that.

This is a quick follow-up to #9175 which was merged before the IT test failure was noticed.

Which issue(s) this PR closes:

Closes #

Special notes for your reviewer:

Suggestions on how to test this: Let the IT tests run/succeed.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label May 31, 2023
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this but a couple thoughts:

  • Are we worried about more NPEs from this part of the code?
  • Should we switch to NullSafeJsonBuilder? Nevermind. It already is. 😞

@pdurbin
Copy link
Member

pdurbin commented May 31, 2023

I'm just mentioning which test is failing and how:

Expected status code <200> doesn't match actual status code <at edu.harvard.iq.dataverse.api.DatasetsIT.testCuratePublishedDatasetVersionCommand(DatasetsIT.java:2787)

From here, for example: https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/job/PR-9493/4/testReport/edu.harvard.iq.dataverse.api/DatasetsIT/testCuratePublishedDatasetVersionCommand/

@kcondon kcondon self-assigned this Jun 1, 2023
@kcondon kcondon merged commit 640668d into IQSS:develop Jun 1, 2023
@pdurbin pdurbin added this to the 5.14 milestone Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 3 A percentage of a sprint. 2.1 hours.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants