Trimmed GPX file cannot be parsed #16
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: McPringle/fitpub#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WHAT I DID
Unzip and upload the attached file
trimmed using https://www.therideatlas.com/tools/gpx-editor/trim
WHAT HAPPENED
Error
2026-04-19T04:59:28.392Z ERROR 1 --- [fitpub] [nio-8080-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: net.javahippie.fitpub.exception.GpxFileProcessingException: Failed to parse GPX file] with root cause fitpub-app | fitpub-app | java.lang.NullPointerException: Cannot invoke "java.time.temporal.Temporal.until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit)" because "<parameter1>" is null fitpub-app | at java.base/java.time.Duration.between(Unknown Source) ~[na:na] fitpub-app | at net.javahippie.fitpub.util.GpxParser.parse(GpxParser.java:83) ~[!/:1.0-SNAPSHOT] fitpub-app | at net.javahippie.fitpub.service.ActivityFileService.processActivityFile(ActivityFileService.java:186) ~[!/:1.0-SNAPSHOT] fitpub-app | at net.javahippie.fitpub.service.ActivityFileService.processActivityFile(ActivityFileService.java:141) ~[!/:1.0-SNAPSHOT]WHAT I EXPECTED
No error
20260416-trimmed.gpx.zip
Bug in trimming tool (deletes the timestamps from the track points) => closed