diff --git a/Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs b/Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs index 22bd9ae57..d2fb6c00c 100644 --- a/Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs +++ b/Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs @@ -65,6 +65,10 @@ namespace SqlSugar } else { + if (entityValue == null) + { + return null; + } var value = splitColumn.PropertyInfo.GetValue(entityValue, null); if (value == null) {