Browse Source
Merge pull request #23823 from abpframework/mansur-vs-internal-7377
Fix null reference in extra properties mapping
pull/23826/head
Ma Liming
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
2 deletions
-
framework/src/Volo.Abp.Mapperly/Volo/Abp/Mapperly/MapperlyAutoObjectMappingProvider.cs
|
|
|
@ -227,10 +227,15 @@ public class MapperlyAutoObjectMappingProvider : IAutoObjectMappingProvider |
|
|
|
return extraProperties; |
|
|
|
} |
|
|
|
|
|
|
|
foreach (var property in hasExtraProperties.ExtraProperties) |
|
|
|
|
|
|
|
if(hasExtraProperties.ExtraProperties is not null) |
|
|
|
{ |
|
|
|
extraProperties.Add(property.Key, property.Value); |
|
|
|
foreach (var property in hasExtraProperties.ExtraProperties) |
|
|
|
{ |
|
|
|
extraProperties.Add(property.Key, property.Value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return extraProperties; |
|
|
|
} |
|
|
|
|
|
|
|
|