修复空指针的问题

This commit is contained in:
2025-07-03 13:22:01 +08:00
parent eaffc6da5c
commit 38ddeafad5

View File

@@ -93,9 +93,13 @@ public static class ObjectExtensions
{
tObj=Activator.CreateInstance(targetProperty.PropertyType);
}
if (sObj!=null && tObj!=null)
{
CopyTo(sObj,tObj);
targetProperty.SetValue(ttarget,tObj);
}
CopyTo(sObj,tObj);
targetProperty.SetValue(ttarget,tObj);
}
}
}