summaryrefslogtreecommitdiff
path: root/player-server
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-20 07:53:14 +0300
committerPaul Buetow <paul@buetow.org>2026-05-20 07:53:14 +0300
commitf2f596dc70756402fd27edea69cfd399dd39b183 (patch)
tree42d60940b0e4dad500dccf956e597afde659dd66 /player-server
parent26d3dc4e031cf195638d2483bcfcdf45fd216502 (diff)
Guard dateTimeFromJson against malformed date strings (c9)
Wrap DateTime.parse in try/catch so a malformed or non-ISO-8601 date string from the server degrades to null instead of throwing a FormatException that crashes model deserialization across Media, MediaSet, User, PodcastFeed, PodcastEpisode, PlaybackHint, Share, and Note. Add player-android/test/json_helpers_test.dart with 11 tests covering null, empty, non-string, valid ISO, and malformed inputs (regression guard for the original crash). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'player-server')
0 files changed, 0 insertions, 0 deletions