8000 fix: [ANDROAPP-7030] Return null if current event is null by Balcan · Pull Request #4162 · dhis2/dhis2-android-capture-app · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: [ANDROAPP-7030] Return null if current event is null #4162

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 2 commits into from
May 22, 2025

Conversation

Balcan
Copy link
Collaborator
@Balcan Balcan commented May 20, 2025

Description

Summarize the change and link
the JIRA issue.

Solution Description

Briefly describe how the issue is resolved.

Title Format

<type>: [JIRA-ISSUE] Description

  • <type> Follow Conventional Commits (e.g., fix, feat).
  • Add the JIRA issue number in [ANDROAPP-XXXX].
  • Include a brief description.
  • Append [skip ci] to skip CI if needed.
  • Append [skip size] to skip PR size limitation.

@@ -223,7 +223,12 @@ public ValidationStrategy validationStrategy() {
@Override
@Nullable
public String getEnrollmentUid() {
return getCurrentEvent().enrollment();
Event currentEvent = getCurrentEvent();
if (currentEvent.enrollment() == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not be currentEvent == null? Calling currentEvent.enrollment() will throw nullpointer if currentEvent is null

@Balcan Balcan requested a review from mmmateos May 21, 2025 06:57
Copy link

@xavimolloy xavimolloy merged commit 83d9f0f into develop May 22, 2025
4 checks passed
@xavimolloy xavimolloy deleted the ANDROAPP-7030 branch May 22, 2025 06:49
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
0