{
  "title": "Handle null note titles without a TypeError",
  "body": "## Summary\n\nIn the fictional TrailNotes demonstration, `formatTitle({ title: null })` throws a TypeError because the implementation calls `.trim()` on `null`.\n\n## Reproduction\n\n1. Download the article's `reproduce-crash.mjs` fixture.\n2. Run `node reproduce-crash.mjs`.\n3. Observe the TypeError and exit code 1.\n\n## Expected behavior\n\nProposed product behavior: a missing title should render as `Untitled`, or be rejected with an explicit validation error. The product owner needs to choose the intended behavior.\n\n## Actual behavior\n\n`TypeError: Cannot read properties of null (reading 'trim')`\n\n## Evidence\n\nThe input is the authored fixture `{\"title\":null}`. The published `crash-log.txt` contains the observed runtime version, platform and sanitized stack frame. The exception was reproduced in a local Node.js process; this is not a production incident or a device crash capture.\n\n## Suspected cause and next step\n\nThe failing fixture line is `return note.title.trim();`. Check the real application's title contract and input validation before choosing a fix. No production code was inspected, and no fix is verified by this report.\n\n## Submission status\n\nDraft only. No GitHub issue has been created. Choose the repository, check for an existing issue, adapt to its issue template, review visibility and authorize submission before posting.\n"
}
