Skip to content

pr: [Nightly Fix] - Null Safety - Guard Missing Submission View#39

Open
jewel-claw wants to merge 1 commit into
masterfrom
nightly-fix/submission-view-missing-entry-guard
Open

pr: [Nightly Fix] - Null Safety - Guard Missing Submission View#39
jewel-claw wants to merge 1 commit into
masterfrom
nightly-fix/submission-view-missing-entry-guard

Conversation

@jewel-claw

Copy link
Copy Markdown

What

The admin submission detail endpoint assumes getSubmission() always returns a record and dereferences it immediately.

Why

An invalid or deleted submission ID can trigger a fatal null-property access instead of a clean JSON error.

Fix

Return a Sorry, No Submission found JSON error before reading submission properties when the lookup fails.

Confidence

Confirmed in code review and validated with php -l on the modified file.

@greptile-apps

greptile-apps Bot commented Mar 12, 2026

Copy link
Copy Markdown

PR author is not in the allowed authors list.

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