Bug #2768

Wrong return of NullConverter

Added by S. Barut 12 months ago. Updated 12 months ago.

Status:ResolvedStart date:09/28/2018
Priority:HighDue date:
Assignee:-% Done:

100%

Category:C#
Target version:-

Description

In my oppinion a bug.

Instead of returning null while deserializing which is obviously not an object, it will now return Null.Instance, which is the singleton of the Null type.
Imho a better design, since an event should have a Data object even if it represents null. Using an event to serialize uses also Null, so why not while deserializing...

0001-Change-the-return-of-the-NullConverter_685072f.patch Magnifier (966 Bytes) S. Barut, 09/28/2018 12:53 PM

Associated revisions

Revision 531bea66
Added by S. Barut 12 months ago

Change the return of the NullConverter

Thus the converters deserialization is like the serialization and
uses the Null instance instead of just null.

fixes #2768

Signed-off-by: Johannes Wienke <>

History

#1 Updated by S. Barut 12 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF