Skip to content

NIAD-3432: Improved error handling when processing skeleton message#1256

Merged
chiaramapellimt merged 2 commits intomainfrom
NIAD-3432
Mar 24, 2026
Merged

NIAD-3432: Improved error handling when processing skeleton message#1256
chiaramapellimt merged 2 commits intomainfrom
NIAD-3432

Conversation

@chiaramapellimt
Copy link
Copy Markdown
Contributor

@chiaramapellimt chiaramapellimt commented Mar 23, 2026

What

Added a null check in SkeletonProcessingService when searching for a payload node matching the skeleton document ID, throwing a descriptive IllegalArgumentException instead of a NullPointerException.

Why

EMIS messages were failing with an uninformative NullPointerException, making the root cause difficult to diagnose from logs. Related ticket: https://nhse-dsic.atlassian.net/browse/NIAD-3432.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Internal change (non-breaking change with no effect on the functionality affecting end users)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the Changelog with details of my change in the UNRELEASED section if this change will affect end users
  • A corresponding change has been made to the Mapping Documentation repository

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 23, 2026

Images built and published to ECR using a Build Id of PR-1008-dccf5a3

@chiaramapellimt chiaramapellimt force-pushed the NIAD-3432 branch 3 times, most recently from 5409a2b to cb11a19 Compare March 23, 2026 15:02
@chiaramapellimt chiaramapellimt marked this pull request as ready for review March 23, 2026 15:50
@chiaramapellimt chiaramapellimt requested a review from a team as a code owner March 23, 2026 15:50
@chiaramapellimt chiaramapellimt force-pushed the NIAD-3432 branch 4 times, most recently from e770f60 to 5235251 Compare March 24, 2026 08:15
NIAD-3435: Documentation improvement (#1254)

* Documentation improvement

* README.md improvement

* README.md letter capitalization improvements

* README.md letter capitalization improvements

* REDACTIONS.md enhancements

* getting-started-with-windows.md docs update

* GPC Consumer version adjustment

Improved error handling when processing skeleton message

NIAD-3435: Documentation improvement (#1254)

* Documentation improvement

* README.md improvement

* README.md letter capitalization improvements

* README.md letter capitalization improvements

* REDACTIONS.md enhancements

* getting-started-with-windows.md docs update

* GPC Consumer version adjustment
@github-actions
Copy link
Copy Markdown

Looks good. All 2 mutations in this change were killed.

class surviving killed
💯uk.nhs.adaptors.pss.translator.service.SkeletonProcessingService 0 2

See https://pitest.org

@chiaramapellimt chiaramapellimt merged commit 385ff15 into main Mar 24, 2026
30 of 31 checks passed
@chiaramapellimt chiaramapellimt deleted the NIAD-3432 branch March 24, 2026 11:01
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.

2 participants