Skip to content

Fix: NPE in peer evaluation getSheet when evaluatee is null - #19

Merged
PathNotFound404 merged 1 commit into
mainfrom
Frontend
Apr 30, 2026
Merged

PathNotFound404 merged 1 commit into
mainfrom
Frontend

Conversation

@PathNotFound404

Copy link
Copy Markdown
Owner

Seed data created PeerEvaluation records without setting the evaluatee field, leaving evaluatee_id NULL in the database. getSheet() would crash calling .getEvaluatee().getId() on those records.

  • Added null guard in getSheet() filter so stale null-evaluatee records are skipped instead of crashing
  • Removed broken peer eval seeding from DataInitializer (it used the old field structure and produced invalid records)

Seed data created PeerEvaluation records without setting the evaluatee
field, leaving evaluatee_id NULL in the database. getSheet() would crash
calling .getEvaluatee().getId() on those records.

- Added null guard in getSheet() filter so stale null-evaluatee records
  are skipped instead of crashing
- Removed broken peer eval seeding from DataInitializer (it used the old
  field structure and produced invalid records)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@PathNotFound404
PathNotFound404 merged commit 22c8678 into main Apr 30, 2026
2 checks passed
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