Skip to content

fix: Add null-checks for tenant.id before force unwrap#174

Open
Lionhunt3r wants to merge 1 commit into
masterfrom
worktree-fix-force-unwrap
Open

fix: Add null-checks for tenant.id before force unwrap#174
Lionhunt3r wants to merge 1 commit into
masterfrom
worktree-fix-force-unwrap

Conversation

@Lionhunt3r

Copy link
Copy Markdown
Owner

Summary

  • Adds null-checks for tenant.id before force unwrap to prevent crashes
  • Extracts criticalRules to local variables for better code clarity

Changes

  • people_list_page.dart: Check tenant.id != null before .eq() query
  • person_detail_page.dart: Check tenant.id != null in personProvider
  • person_detail_page.dart: Extract criticalRules to local variable
  • late_warning_card.dart: Extract criticalRules to local variable

Test plan

  • All 348 tests pass
  • dart analyze shows no issues

Closes #162

- people_list_page.dart: Check tenant.id != null before .eq() query
- person_detail_page.dart: Check tenant.id != null in personProvider
- person_detail_page.dart: Extract criticalRules to local variable for clarity
- late_warning_card.dart: Extract criticalRules to local variable for clarity

Prevents potential crash when tenant.id is null.
Closes #162
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.

RT-001/002/003: Force Unwrap auf tenant.id! und criticalRules! ohne null-Check

1 participant