Skip to content

AOM-181: Fix NullPointerException in PatientVisitsPortletController#254

Open
aadvik93 wants to merge 2 commits intoopenmrs:masterfrom
aadvik93:AOM-181
Open

AOM-181: Fix NullPointerException in PatientVisitsPortletController#254
aadvik93 wants to merge 2 commits intoopenmrs:masterfrom
aadvik93:AOM-181

Conversation

@aadvik93
Copy link
Copy Markdown

This PR fixes a potential NullPointerException in PatientVisitsPortletController.

Issue

If HttpServletRequest or ModelMap is null, the application may throw a NullPointerException.

Solution

Added null checks for:
• HttpServletRequest
• ModelMap

and throw an IllegalArgumentException if they are null.

Related Issue

https://openmrs.atlassian.net/browse/AOM-181

How to Test
• Run the application
• Navigate to the Patient Visits Portlet
• Ensure no NullPointerException occurs

Checklist
• Code compiles successfully
• Changes follow project guidelines
• Linked to JIRA ticket

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