From 1c026707b93878269376e00209ff9e7fc46f89f8 Mon Sep 17 00:00:00 2001 From: Gavin Brennan Date: Sun, 1 Oct 2023 21:31:29 +0100 Subject: [PATCH] Serialization fix --- src/Qwack.Core/Instruments/Funding/GenericSwapLeg.cs | 10 +++++----- version.props | 2 +- version.txt | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Qwack.Core/Instruments/Funding/GenericSwapLeg.cs b/src/Qwack.Core/Instruments/Funding/GenericSwapLeg.cs index 890ffc3c..1faf2331 100644 --- a/src/Qwack.Core/Instruments/Funding/GenericSwapLeg.cs +++ b/src/Qwack.Core/Instruments/Funding/GenericSwapLeg.cs @@ -138,12 +138,12 @@ private void SetAllCalendars(Calendar calendars) EffectiveDate = EffectiveDate, TerminationDate = new TO_ITenorDate { Absolute = TerminationDate is TenorDateAbsolute ta ? ta.AbsoluteDate : null, Relative = TerminationDate is TenorDateRelative tr ? tr.RelativeTenor.ToString() : null }, ResetFrequency = ResetFrequency.ToString(), - Currency = Currency.ToString(), + Currency = Currency?.ToString(), AccrualDCB = AccrualDCB, - FixingCalendar = FixingCalendar.Name, - ResetCalendar = ResetCalendar.Name, - AccrualCalendar = AccrualCalendar.Name, - PaymentCalendar = PaymentCalendar.Name, + FixingCalendar = FixingCalendar?.Name, + ResetCalendar = ResetCalendar?.Name, + AccrualCalendar = AccrualCalendar?.Name, + PaymentCalendar = PaymentCalendar?.Name, ResetRollType = ResetRollType, PaymentRollType = PaymentRollType, FixingRollType = FixingRollType, diff --git a/version.props b/version.props index dcf3bcc6..f7a98e02 100644 --- a/version.props +++ b/version.props @@ -1,5 +1,5 @@ - 0.7.38 + 0.7.39 diff --git a/version.txt b/version.txt index 8c32a43f..18296cbe 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.7.38 \ No newline at end of file +0.7.39 \ No newline at end of file