From d633a5d79d275019274fd53c6a162b7afd051152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Je=C5=BE?= Date: Thu, 20 Sep 2018 22:58:16 +0200 Subject: [PATCH] Fixed byte[] serialization (null value was throwing exception) --- .../ViewModel/Serialization/ViewModelSerializationMap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotVVM.Framework/ViewModel/Serialization/ViewModelSerializationMap.cs b/src/DotVVM.Framework/ViewModel/Serialization/ViewModelSerializationMap.cs index e004d0a0c1..9ac85da8d0 100644 --- a/src/DotVVM.Framework/ViewModel/Serialization/ViewModelSerializationMap.cs +++ b/src/DotVVM.Framework/ViewModel/Serialization/ViewModelSerializationMap.cs @@ -215,7 +215,7 @@ public ReaderDelegate CreateReaderFactory() let parameters = method.GetParameters() where parameters.Length == 1 let parameterType = parameters[0].ParameterType - where parameterType != typeof(object) + where parameterType != typeof(object) && parameterType != typeof(byte[]) where parameterType != typeof(DateTime) && parameterType != typeof(DateTime?) where parameterType != typeof(DateTimeOffset) && parameterType != typeof(DateTimeOffset?) select new { key = parameterType, value = method }