Skip to content

Commit

Permalink
Merged PR 5760: Fixed a nullref in the PropertyValueConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
BramvdBogaard committed Aug 9, 2022
1 parent 35b3884 commit f54d149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageIcon>infocaster_nuget_yellow.png</PackageIcon>
<PackageReadmeFile>README-NUGET.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/infocaster/IcomoonPicker</RepositoryUrl>
<PackageReleaseNotes>First release for Umbraco 10</PackageReleaseNotes>
<PackageReleaseNotes>Fixed a xpath error</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public object ConvertIntermediateToObject(IPublishedElement owner, IPublishedPro

public object ConvertIntermediateToXPath(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
{
return inter.ToString();
return inter?.ToString() ?? String.Empty;
}

public object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
Expand Down

0 comments on commit f54d149

Please sign in to comment.