Skip to content

Skip text directly on a record or lap element instead of crashing - #42

Merged
tabishm52 merged 1 commit into
mainfrom
fix-direct-text-crash
Sep 6, 2026
Merged

tabishm52 merged 1 commit into
mainfrom
fix-direct-text-crash

Conversation

@tabishm52

@tabishm52 tabishm52 commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • _walk yielded a record/lap element's own text at the empty path, and _row_from_fields indexed it, raising IndexError on input the parser otherwise tolerates.
  • Fixed by skipping text when path is empty.

Test plan

  • New TCX/GPX fixtures with stray text on the record/lap element
  • mixed_content.tcx unaffected
  • Full gate green

_row_from_fields indexed the empty path yielded for an element's
own text, raising IndexError on input the parser otherwise tolerates.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tabishm52
tabishm52 merged commit 242f3fc into main Sep 6, 2026
4 checks passed
@tabishm52
tabishm52 deleted the fix-direct-text-crash branch September 6, 2026 02:10
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