Skip to content

Null pointer fixes #761

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

Merged
merged 4 commits into from
Jan 23, 2025
Merged

Null pointer fixes #761

merged 4 commits into from
Jan 23, 2025

Conversation

thekevinWHYuan
Copy link
Contributor

No description provided.

@StarDylan
Copy link
Contributor

StarDylan commented Jan 22, 2025

What was the issue? / How'd you fix it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Photo being sent was already encoded in base64.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Decided to store base64 encoding in photoPath due to convenience and changing the entire schema seemed risky..

getPatientPhotoOrNull was the main culprit. It checked to see whether the photoID AND the photoPath wasn't null and if even one of them was, both of them would be null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stores base64 uri picture with the patient

@thekevinWHYuan
Copy link
Contributor Author

Sorry about that Dylan, just added some explanations to the files

@bholt13
Copy link
Member

bholt13 commented Jan 22, 2025

Does this affect the triage image uploading for patient identification image? Have you tested that yet on your end?

@thekevinWHYuan
Copy link
Contributor Author

Patient identification image? Like the encounters? The encounters are fine with the changes

@bholt13
Copy link
Member

bholt13 commented Jan 22, 2025

When the patient is created in triage, their profile image

@thekevinWHYuan
Copy link
Contributor Author

It works fine

Copy link
Contributor

@JLpro-cd JLpro-cd left a comment

Choose a reason for hiding this comment

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

If you confirmed these changes don't break the patient image stuff, LGTM!

@realkaranvir
Copy link
Contributor

Since patient photos are still working with this fix, LGTM!

@thekevinWHYuan thekevinWHYuan merged commit 1c302ac into master Jan 23, 2025
5 checks passed
@thekevinWHYuan thekevinWHYuan deleted the kevin-null branch January 23, 2025 16:36
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.

5 participants