diff --git a/lib/src/media_format/audio.dart b/lib/src/media_format/audio.dart index f92973d..0266bd1 100644 --- a/lib/src/media_format/audio.dart +++ b/lib/src/media_format/audio.dart @@ -310,7 +310,7 @@ class Audio { @override String toString() { - var desc = 'MediaFormat: ${mediaFormat.name}'; + var desc = 'MediaFormat: ${mediaFormat?.name ?? "NONE"}'; if (_onDisk) { desc += 'storage: $_storagePath'; }