andrea-magni / MARS

MARS-Curiosity Delphi REST Library
Mozilla Public License 2.0
363 stars 112 forks source link

Prevent NPE when TValue is empty #132

Closed dominikkv closed 1 year ago

dominikkv commented 1 year ago

When a TValue is empty/null and it is serialized to Json, a NullPointerException occurs. This is because the serialization method does access the TypeInfo, which is null.

andrea-magni commented 1 year ago

Thank you for your contribution, @dominikkv .