From 00724312269c96c7cdf3672c6ff1cb34f485e4ee Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Fri, 5 Dec 2025 14:38:45 -0600 Subject: [PATCH] Fix null CRC32s --- LANCommander.Server.ImportExport/Importers/MediaImporter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LANCommander.Server.ImportExport/Importers/MediaImporter.cs b/LANCommander.Server.ImportExport/Importers/MediaImporter.cs index 481ffe2f..bbb266f4 100644 --- a/LANCommander.Server.ImportExport/Importers/MediaImporter.cs +++ b/LANCommander.Server.ImportExport/Importers/MediaImporter.cs @@ -68,7 +68,7 @@ public class MediaImporter( StorageLocation = defaultMediaLocation, SourceUrl = record.SourceUrl, MimeType = record.MimeType, - Crc32 = record.Crc32, + Crc32 = record.Crc32 ?? String.Empty, }; media = await mediaService.AddAsync(media); @@ -115,7 +115,7 @@ public class MediaImporter( existing.MimeType = record.MimeType; existing.CreatedOn = record.CreatedOn; existing.UpdatedOn = record.UpdatedOn; - existing.Crc32 = record.Crc32; + existing.Crc32 = record.Crc32 ?? String.Empty; existing.SourceUrl = record.SourceUrl; if (existing.StorageLocation == null)