Skip to content

Commit

Permalink
Missing null check which will cause a YSOD if empty value (#7661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shazwazza authored Feb 24, 2020
1 parent 4275401 commit 92da831
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public override object ConvertSourceToIntermediate(IPublishedElement owner, IPub
value = new ImageCropperValue { Src = sourceString };
}

value.ApplyConfiguration(propertyType.DataType.ConfigurationAs<ImageCropperConfiguration>());
value?.ApplyConfiguration(propertyType.DataType.ConfigurationAs<ImageCropperConfiguration>());

return value;
}
Expand Down

0 comments on commit 92da831

Please sign in to comment.