diff --git a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/DocStatusHandler.cs b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/DocStatusHandler.cs index ca264295..adae66cf 100644 --- a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/DocStatusHandler.cs +++ b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/DocStatusHandler.cs @@ -10,6 +10,8 @@ namespace EnvelopeGenerator.Application.Common.Notifications.DocSigned.Handlers; /// public class DocStatusHandler : INotificationHandler { + private const string BlankAnnotationJson = "{}"; + private readonly ISender _sender; /// @@ -33,7 +35,9 @@ public class DocStatusHandler : INotificationHandler { Envelope = new() { Id = notification.EnvelopeId }, Receiver = new() { Id = notification.ReceiverId}, - Value = JsonSerializer.Serialize(notification.PsPdfKitAnnotation.Instant, Format.Json.ForAnnotations) + Value = notification.PsPdfKitAnnotation is PsPdfKitAnnotation annot + ? JsonSerializer.Serialize(annot.Instant, Format.Json.ForAnnotations) + : BlankAnnotationJson }, cancel); } } \ No newline at end of file