Skip to content

O3-5396: Fix NPE when undoing a queue transition#108

Merged
chibongho merged 1 commit into
mainfrom
O3-5396
Apr 9, 2026
Merged

O3-5396: Fix NPE when undoing a queue transition#108
chibongho merged 1 commit into
mainfrom
O3-5396

Conversation

@chibongho
Copy link
Copy Markdown
Contributor

When we undo a queue transition, we do this:

prevQueueEntry.setEndedAt(null);
boolean updated = dao.updateIfUnmodified(prevQueueEntry, expectedDateChanged);

This PR adds a null check to the endAt tiime to avoid NPE.

@chibongho chibongho requested review from mogoodrich and mseaton April 7, 2026 19:14
@chibongho chibongho merged commit b40e4f8 into main Apr 9, 2026
7 checks passed
@chibongho chibongho deleted the O3-5396 branch April 9, 2026 14:58
Brijesh-0106 pushed a commit to Brijesh-0106/openmrs-module-queue that referenced this pull request Apr 10, 2026
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.

2 participants