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

Subscriptions with null content cause NullPointerException #5773

Open
dotasek opened this issue Mar 11, 2024 · 0 comments
Open

Subscriptions with null content cause NullPointerException #5773

dotasek opened this issue Mar 11, 2024 · 0 comments

Comments

@dotasek
Copy link
Contributor

dotasek commented Mar 11, 2024

Description

A Subscription with content set to null will cause the getPayloadByContent method to throw a NullPointerException.

To Reproduce

Check out the rel_7_1_tracking branch of HAPI FHIR JPA Server Starter (https://github.com/hapifhir/hapi-fhir-jpaserver-starter/tree/rel_7_1_tracking)

In an IDE, find and run ca.uhn.fhir.jpa.starter.ExampleServerR5IT.testWebsocketSubscription. It will fail, with the root cause being a NullPointerException.

Expected behavior

If the content is an actual null, it should not fail, and return Optional.empty().

KevinDougan-SmileCDR pushed a commit that referenced this issue Mar 11, 2024
* Breaking test and null check

* Changelog
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

No branches or pull requests

1 participant