From e965e378739c3ba959185d3c4ad5f31bc94547bf Mon Sep 17 00:00:00 2001 From: Sinan Date: Fri, 28 Sep 2018 10:53:54 +0200 Subject: [PATCH 1/5] Change the return of the NullConverter Thus the converters deserialization is like the serialization and uses the Null instance instead of just null. --- rsb-cil/Rsb/Converter/NullConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsb-cil/Rsb/Converter/NullConverter.cs b/rsb-cil/Rsb/Converter/NullConverter.cs index 72da94b..cf4c489 100644 --- a/rsb-cil/Rsb/Converter/NullConverter.cs +++ b/rsb-cil/Rsb/Converter/NullConverter.cs @@ -12,7 +12,7 @@ namespace Rsb.Converter { throw new ConversionException("Unexpected wire schema for deserialization: " + data.Item1); } - return null; + return Null.Instance; } public ConverterSignature GetSignature() -- 2.14.2.windows.1