Răsfoiți Sursa

配置的参数需要trim一下

tanghai 11 ani în urmă
părinte
comite
5f2ae8e1af

+ 5 - 0
CSharp/App/Modules/BehaviorTreeModule/ListToStringConverter.cs

@@ -27,6 +27,11 @@ namespace Modules.BehaviorTreeModule
                 return new List<string>();
             }
             var s = (string) value;
+            s = s.Trim();
+            if (s == "")
+            {
+                return new List<string>();
+            }
             string[] ss = s.Split(',');
             for (int i = 0; i < ss.Length; ++i)
             {