diff --git a/CHANGELOG.md b/CHANGELOG.md index 709db110..f6a46216 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -## [2.16.1](https://github.com/Terradue/Stars/compare/2.16.0...2.16.1) +## [2.16.2](https://github.com/Terradue/Stars/compare/2.16.1...2.16.2) + +### Commits + +- fix null content [`f6953f4`](https://github.com/Terradue/Stars/commit/f6953f4a2f9816562898668871179c58cb6d7e52) + +## [2.16.1](https://github.com/Terradue/Stars/compare/2.16.0...2.16.1) - 2023-09-22 ### Commits diff --git a/src/Stars.Console/Terradue.Stars.Console.csproj b/src/Stars.Console/Terradue.Stars.Console.csproj index 4ed43c16..6df73977 100644 --- a/src/Stars.Console/Terradue.Stars.Console.csproj +++ b/src/Stars.Console/Terradue.Stars.Console.csproj @@ -2,7 +2,7 @@ Exe net6.0 - 2.16.1 + 2.16.2 Stars is a CLI for working with Spatio Temporal Catalog such as STAC but not only $(Version)-$(VersionSuffix) diff --git a/src/Stars.Data/Terradue.Stars.Data.csproj b/src/Stars.Data/Terradue.Stars.Data.csproj index 50cb50ef..91da52e3 100644 --- a/src/Stars.Data/Terradue.Stars.Data.csproj +++ b/src/Stars.Data/Terradue.Stars.Data.csproj @@ -4,7 +4,7 @@ Terradue.Stars.Data Terradue.Stars.Data Collection of data Plugins for Terradue.Stars - 2.16.1 + 2.16.2 $(Version)-$(VersionSuffix) NU1603 diff --git a/src/Stars.Data/ThirdParty/Publication/GeosquareService.cs b/src/Stars.Data/ThirdParty/Publication/GeosquareService.cs index d361c314..53ad8bb7 100644 --- a/src/Stars.Data/ThirdParty/Publication/GeosquareService.cs +++ b/src/Stars.Data/ThirdParty/Publication/GeosquareService.cs @@ -214,7 +214,7 @@ public async Task PrepareAtomItem(AtomItem atomItem, GeosquarePublicationState g { var xml = extension.GetReader().ReadOuterXml(); var offering = OwcContextHelper.OwcOfferingSerializer.Deserialize(new System.IO.StringReader(xml)) as OwcOffering; - if ( offering == null ) continue; + if (offering == null || offering.Contents == null) continue; atomItem.ElementExtensions.Remove(extension); foreach (var content in offering.Contents) { @@ -225,7 +225,7 @@ public async Task PrepareAtomItem(AtomItem atomItem, GeosquarePublicationState g atomItem.ElementExtensions.Add(offering.CreateReader()); } } - + atomItem.ElementExtensions.ReadElementExtensions("offering", OwcNamespaces.Owc, new System.Xml.Serialization.XmlSerializer(typeof(OwcOffering))); diff --git a/src/Stars.Services/Terradue.Stars.Services.csproj b/src/Stars.Services/Terradue.Stars.Services.csproj index 662e9c56..4b234033 100644 --- a/src/Stars.Services/Terradue.Stars.Services.csproj +++ b/src/Stars.Services/Terradue.Stars.Services.csproj @@ -3,7 +3,7 @@ netstandard2.0 Terradue.Stars Stars is a set of services for working with Spatio Temporal Catalog such as STAC but not only - 2.16.1 + 2.16.2 $(Version)-$(VersionSuffix) Terradue.Stars.Services