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

Issue #3276 - Fix NPE in fhir-smart beforeDelete #3292

Conversation

jornvanwier
Copy link
Contributor

Use event.getFhirResource() instead of event.getPrevResource() in beforeDelete method of fhir-smart.

FHIRRestHelper.doDelete sends an event with only event.setFhirResource(), not event.setPrevFhirResource(). I assume that the code in FHIRRestHelper is correct given that it is used in more places, so I changed the code in fhir-smart to get the correct resource from the event.

If this is not the correct solution I'd be happy to make changes.

@jornvanwier jornvanwier force-pushed the issue-3276-NullPointerException-when-deleting-resource-with-fhir-smart-enabled branch from 9fe5771 to 46a5379 Compare February 7, 2022 15:09
Use event.getFhirResource() instead of event.getPrevResource() in
beforeDelete method of fhir-smart.

Signed-off-by: Jorn van Wier <mail@jornvanwier.com>
@jornvanwier jornvanwier force-pushed the issue-3276-NullPointerException-when-deleting-resource-with-fhir-smart-enabled branch from 46a5379 to e629265 Compare February 7, 2022 15:17
@jornvanwier jornvanwier closed this Feb 7, 2022
@jornvanwier jornvanwier deleted the issue-3276-NullPointerException-when-deleting-resource-with-fhir-smart-enabled branch February 7, 2022 16:08
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.

1 participant