Skip to content

Commit

Permalink
null check (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
RuzmanovDev authored Oct 23, 2024
1 parent 1aa2764 commit 2c097fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ public async Task<IEnumerable<string>> GetPackageVersions(string id, IEnumerable
foreach (INugetProvider nugetProvider in this.nugetProviders.Values)
{
IEnumerable<string> versionsFromProvider = await nugetProvider.GetPackageVersions(id, nugetSources, versionsCount);
allVersions.AddRange(versionsFromProvider);
if (versionsFromProvider != null)
{
allVersions.AddRange(versionsFromProvider);
}
}

return allVersions.OrderByDescending(x => x);
Expand Down
4 changes: 2 additions & 2 deletions Sitefinity CLI/Sitefinity CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>sf</AssemblyName>
<RootNamespace>Sitefinity_CLI</RootNamespace>
<AssemblyVersion>1.1.0.50</AssemblyVersion>
<AssemblyVersion>1.1.0.51</AssemblyVersion>
<Version>1.1.0</Version>
<FileVersion>1.1.0.50</FileVersion>
<FileVersion>1.1.0.51</FileVersion>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
Expand Down

0 comments on commit 2c097fc

Please sign in to comment.