Commit 94decdd5 authored by 潘栩锋's avatar 潘栩锋 🚴

PropertiesManager_JSON.SetValue 设置null 时,会出错

parent b6ef35e4
......@@ -37,7 +37,11 @@ namespace FLY.OBJComponents.Common
if (property != null)
{
if (v.GetType() == property.PropertyType)
if (v == null)
{
property.SetValue(obj, v, null);
}
else if (v.GetType() == property.PropertyType)
{
property.SetValue(obj, v, null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment