Update BaseImporter.cs (#1146)

This commit is contained in:
Leendert de Borst
2025-08-26 17:51:13 +02:00
committed by Leendert de Borst
parent bf1a235dd2
commit 70ed03e1b3

View File

@@ -99,7 +99,7 @@ public static class BaseImporter
/// <param name="customDecoder">Optional custom decoder function for importer-specific decoding.</param>
private static void DecodeFields<T>(T record, Func<string, string>? customDecoder = null)
{
if (record.Equals(default(T))) {
if (record?.Equals(default(T)) ?? true) {
return;
}