Skip to content

Commit

Permalink
fix: add null check on provider property
Browse files Browse the repository at this point in the history
  • Loading branch information
rpjengaard committed Nov 8, 2021
1 parent fc3a3fc commit bb4e256
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Skybrud.VideoPicker/Models/VideoPickerItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class VideoPickerItem : JsonObjectBase {
#region Properties

[JsonProperty("type")]
public string Type => Provider.Alias;
public string Type => Provider?.Alias;

[JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
public string Url { get; internal set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Skybrud.VideoPicker/Skybrud.VideoPicker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0-beta011</Version>
<Version>1.0.0-beta012</Version>
<Authors>Anders Bjerner</Authors>
<Company>Limbo</Company>
<Description>Skybrud.VideoPicker is a package for Umbraco 7 containing a property editor and a grid editor for inserting videos from YouTube, Vimeo or TwentyThree.</Description>
Expand Down

0 comments on commit bb4e256

Please sign in to comment.