From 95eb4b62fe4abff45c60753df81b2f954111554b Mon Sep 17 00:00:00 2001 From: Vincent Bachelier Date: Tue, 11 Jun 2024 15:55:49 +0200 Subject: [PATCH] fix bad subsection --- mspa_sections.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mspa_sections.go b/mspa_sections.go index 1ede462..2c646bb 100644 --- a/mspa_sections.go +++ b/mspa_sections.go @@ -143,7 +143,9 @@ func (m *MspaUsNational) ParseConsent() (GppParsedConsent, error) { if len(segments) > 1 { var gppSubsectionConsent *GppSubSection gppSubsectionConsent, _ = ParseGppSubSections(segments[1:]) - p.Gpc = gppSubsectionConsent.Gpc + if gppSubsectionConsent != nil { + p.Gpc = gppSubsectionConsent.Gpc + } } return p, r.Err