浏览代码

Fix to another filter bug

Kenric Nugteren 6 月之前
父节点
当前提交
20164b674c
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      InABox.Core/Query/Filter.cs

+ 9 - 2
InABox.Core/Query/Filter.cs

@@ -1527,8 +1527,15 @@ namespace InABox.Core
             if(b != 0)
             {
                 var exp = reader.DeserialiseExpression(typeof(T), b);
-                Property = CoreUtils.ExpressionToString(typeof(object), exp);
-                Logger.Send(LogType.Information, "", $"Non-zero byte: {Property} ({exp.Type})");
+                if(exp is ParameterExpression)
+                {
+                    Property = "";
+                }
+                else
+                {
+                    Property = CoreUtils.ExpressionToString(typeof(object), exp);
+                    Logger.Send(LogType.Information, "", $"Non-zero byte: {Property} ({exp.Type})");
+                }
             }
             else
             {