Skip to content

Fix null dereference bug in edit function - #235

Open
Dima-shima wants to merge 1 commit into
mate-academy:review-mefrom
Dima-shima:review-me
Open

Dima-shima wants to merge 1 commit into
mate-academy:review-mefrom
Dima-shima:review-me

Conversation

@Dima-shima

Copy link
Copy Markdown
  • Add null check in store.edit() before modifying note
  • Return boolean to indicate success/failure (consistent with remove())
  • Add error handling in notes.js edit command to handle missing notes
  • Prevents crash when editing non-existent note IDs

- Add null check in store.edit() before modifying note
- Return boolean to indicate success/failure (consistent with remove())
- Add error handling in notes.js edit command to handle missing notes
- Prevents crash when editing non-existent note IDs

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
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