john-okeefe
a19f77c535
fix(sync): prevent nil pointer dereference when existing progress is missing
...
In applyProgressResolution and applyResolution, currentPage and totalPages
were unconditionally read from existingProgress even when the preceding
query returned err (no rows). This caused a nil pointer dereference when
no existing reading progress existed for a media item. Now declare the
variables as zero-value pgtype.Int4 and only populate them from
existingProgress when err is nil.
2026-04-20 20:45:41 -04:00
..
2026-02-14 21:38:08 -05:00
2026-03-06 14:00:28 -05:00
2026-02-14 21:38:08 -05:00
2026-04-13 09:23:12 -04:00
2026-03-06 14:00:28 -05:00
2026-03-06 14:00:28 -05:00
2026-02-01 16:11:54 -05:00
2026-02-14 21:38:00 -05:00
2026-04-04 22:49:12 -04:00
2026-03-06 14:00:28 -05:00
2026-04-20 20:43:04 -04:00
2026-04-20 20:45:41 -04:00
2026-03-06 14:00:28 -05:00
2026-03-02 13:11:39 -05:00
2026-03-28 21:21:03 -04:00
2026-02-14 21:38:00 -05:00
2026-03-24 16:47:42 -04:00
2026-03-21 23:03:43 -04:00
2026-03-06 14:00:28 -05:00
2026-02-14 21:38:08 -05:00
2026-04-20 08:57:42 -04:00
2026-04-20 20:45:35 -04:00
2026-02-14 21:38:08 -05:00
2026-03-06 14:00:28 -05:00
2026-03-06 14:00:28 -05:00
2026-03-28 23:54:39 -04:00
2026-04-10 19:35:35 -04:00
2026-03-11 16:42:21 -04:00
2026-04-13 09:24:01 -04:00
2026-02-14 21:38:08 -05:00
2026-03-06 14:00:28 -05:00
2026-04-20 08:57:42 -04:00
2026-04-19 21:50:40 -04:00
2026-02-14 21:38:08 -05:00
2026-03-06 14:00:28 -05:00
2026-03-06 14:00:28 -05:00
2026-02-13 20:04:47 -05:00
2026-02-14 21:38:08 -05:00
2026-03-24 16:47:42 -04:00
2026-03-06 14:00:28 -05:00
2026-03-06 14:00:28 -05:00
2026-03-06 14:00:28 -05:00