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: cater for some "attached_to" CU fields being null in the DB #337

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

fibble
Copy link
Contributor

@fibble fibble commented Sep 18, 2024

Description

attached_to col on conditions_undertakings is null by design for some rows. Some places in api we call ->getAttachedTo()->getId() style chained methods. Added nullsafe to all the instances i could see calling getAttachedTo() on in a chain on a conditions undertakings entity.

Related issue: VOL-5786

Before submitting (or marking as "ready for review")

  • Does the pull request title follow the conventional commit specification?
  • Have you performed a self-review of the code
  • Have you have added tests that prove the fix or feature is effective and working
  • Did you make sure to update any documentation relating to this change?

@fibble fibble requested review from ilindsay and a team as code owners September 18, 2024 15:43
@fibble fibble changed the title fix: Cater for some "attached_to" CU fields being null in the DB. fix: cater for some "attached_to" CU fields being null in the DB. Sep 18, 2024
@fibble fibble changed the title fix: cater for some "attached_to" CU fields being null in the DB. fix: cater for some "attached_to" CU fields being null in the DB Sep 18, 2024
@ilindsay ilindsay merged commit 6b46419 into main Sep 18, 2024
19 of 22 checks passed
@ilindsay ilindsay deleted the operator-continuation-bug-VOL-5786 branch September 18, 2024 17:21
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.

3 participants