Skip to content

Commit 10d2528

Browse files
callumbwhytemikecp
authored andcommitted
Adding null check to IsCulturePublished on IContent
1 parent a6aaf4b commit 10d2528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Core/Models/Content.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public IEnumerable<string> EditedCultures
237237
public bool IsCulturePublished(string culture)
238238
// just check _publishInfos
239239
// a non-available culture could not become published anyways
240-
=> _publishInfos != null && _publishInfos.ContainsKey(culture);
240+
=> !culture.IsNullOrWhiteSpace() && _publishInfos != null && _publishInfos.ContainsKey(culture);
241241

242242
/// <inheritdoc />
243243
public bool IsCultureEdited(string culture)

0 commit comments

Comments
 (0)