Ver Fonte

Fix to another filter bug

Kenric Nugteren há 6 meses atrás
pai
commit
20164b674c
1 ficheiros alterados com 9 adições e 2 exclusões
  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
             {