Commit 33582948 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 PropertiesManager_JSON.SetValue 当 value 为null 是会出错

parent 5f82430a
...@@ -37,7 +37,11 @@ namespace FLY.OBJComponents.Common ...@@ -37,7 +37,11 @@ namespace FLY.OBJComponents.Common
if (property != null) 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); 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