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: Add null check for program [DHIS2-18459] #19240

Merged
merged 2 commits into from
Nov 20, 2024
Merged

fix: Add null check for program [DHIS2-18459] #19240

merged 2 commits into from
Nov 20, 2024

Conversation

larshelge
Copy link
Member

@larshelge larshelge commented Nov 20, 2024

Fixes a nullpointer vulnerability. It appears that the program field is optional, and there is no check for whether a program exists before doing calling getMaxTeiCountToReturn().

@ameenhere ameenhere merged commit f209711 into 2.41 Nov 20, 2024
13 checks passed
@ameenhere ameenhere deleted the DHIS2-18459-41 branch November 20, 2024 16:58
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