Skip to content

Commit

Permalink
Add extra null check incase value comes in compleatly blank
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Oct 8, 2019
1 parent 7969f8f commit 541a5fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uSync8.ContentEdition/Mapping/Mappers/RTEMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public RTEMapper(IEntityService entityService) : base(entityService)

public override IEnumerable<uSyncDependency> GetDependencies(object value, string editorAlias, DependencyFlags flags)
{
// value null check.
if (value == null) return Enumerable.Empty<uSyncDependency>();

var stringValue = value.ToString();
if (string.IsNullOrWhiteSpace(stringValue)) return Enumerable.Empty<uSyncDependency>();

Expand Down

0 comments on commit 541a5fc

Please sign in to comment.