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 initialisation order in DifferentialExperimentContrastLines's constructor #219

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

ke4
Copy link
Contributor

@ke4 ke4 commented Nov 25, 2024

Experiment design variable was initialised after it was used in buildContrastDetails method in the constructor.
For this reason we got a NPE exception when we tried to use it in the buildContrastDetails method.
I had to swap the initialisation order in DifferentialExperimentContrastLines's constructor.

Unfortunately nobody wrote tests for this class. :-(
We need to merge and deploy this change ASAP.
I am going to add a ticket for writing tests and that is going to be done later, hopefully during next sprint.
Not very ideal. :-(

…structor

buildContrastDetails method in the constructor using experimentDesign variable, hence it needs to initialise sooner
@ke4 ke4 self-assigned this Nov 25, 2024
@ke4 ke4 added the bug Something isn't working label Nov 25, 2024
Copy link
Contributor

@upendrakumbham upendrakumbham left a comment

Choose a reason for hiding this comment

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

LGTM!

@ke4 ke4 merged commit e7e659d into develop Nov 25, 2024
2 checks passed
@ke4 ke4 deleted the bugfix/contrastdetails_export branch November 25, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE when calling contrastdetails generation endpoint NPE when calling assaygroupsdetails generation endpoint
2 participants