From b5c5dbbe76d7b4e4afed9d6b663f61ceeee85d0f Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 13 May 2026 12:42:59 -0400 Subject: [PATCH] fix(flutter): null-coalesce PlaylistTrack.streamUrl to TrackRef.streamUrl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PlaylistTrack.streamUrl is String? (nullable when track is unavailable post-delete); TrackRef.streamUrl is required String. flutter analyze caught the mismatch. Coalesce to empty string for unavailable rows — they're already filtered out by the trackId != null check earlier in the loop, so this branch is effectively unreachable but keeps the type-checker happy. Co-Authored-By: Claude Opus 4.7 (1M context) --- flutter_client/lib/playlists/widgets/playlist_card.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_client/lib/playlists/widgets/playlist_card.dart b/flutter_client/lib/playlists/widgets/playlist_card.dart index 40aec905..47e75033 100644 --- a/flutter_client/lib/playlists/widgets/playlist_card.dart +++ b/flutter_client/lib/playlists/widgets/playlist_card.dart @@ -116,7 +116,7 @@ class PlaylistCard extends ConsumerWidget { artistId: t.artistId ?? '', artistName: t.artistName, durationSec: t.durationSec, - streamUrl: t.streamUrl, + streamUrl: t.streamUrl ?? '', )); } if (refs.isEmpty) return;