From af98cde08c2b24cbec7e58766443ab42563c6009 Mon Sep 17 00:00:00 2001 From: DocSvartz Date: Mon, 22 Jun 2026 15:17:05 +0500 Subject: [PATCH] fix: drop null check --- src/Mapster/Adapters/BaseAdapter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mapster/Adapters/BaseAdapter.cs b/src/Mapster/Adapters/BaseAdapter.cs index 0e9c7923..58e95e86 100644 --- a/src/Mapster/Adapters/BaseAdapter.cs +++ b/src/Mapster/Adapters/BaseAdapter.cs @@ -504,10 +504,10 @@ internal Expression CreateAdaptExpression(Expression source, Type destinationTyp else exp = CreateAdaptExpressionCore(_source, destinationType, arg, mapping, destination); - // NullablePropagation when for member using Custom converter MapWith - if (notUsingDestinationValue && arg.MapType != MapType.Projection - && mapping != null && mapping.Getter.CanBeNull()) - exp = mapping.Getter.NotNullReturn(exp); + //// NullablePropagation when for member using Custom converter MapWith + //if (notUsingDestinationValue && arg.MapType != MapType.Projection + // && mapping != null && mapping.Getter.CanBeNull()) + // exp = mapping.Getter.NotNullReturn(exp); //transform(adapt(_source)); if (notUsingDestinationValue)