Merge pull request #6751 from Jeavon/v8/bugfix/null-user-rte-editor
Add additional null conditionals to the FromEditor method of RichTextPropertyValueEditor
This commit is contained in:
@@ -89,7 +89,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
|
||||
var grid = DeserializeGridValue(rawJson, out var rtes);
|
||||
|
||||
var userId = _umbracoContextAccessor.UmbracoContext?.Security.CurrentUser.Id ?? Constants.Security.SuperUserId;
|
||||
var userId = _umbracoContextAccessor.UmbracoContext?.Security?.CurrentUser?.Id ?? Constants.Security.SuperUserId;
|
||||
|
||||
// Process the rte values
|
||||
foreach (var rte in rtes)
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
if (editorValue.Value == null)
|
||||
return null;
|
||||
|
||||
var userId = _umbracoContextAccessor.UmbracoContext?.Security.CurrentUser.Id ?? Constants.Security.SuperUserId;
|
||||
var userId = _umbracoContextAccessor.UmbracoContext?.Security?.CurrentUser?.Id ?? Constants.Security.SuperUserId;
|
||||
|
||||
var config = editorValue.DataTypeConfiguration as RichTextConfiguration;
|
||||
var mediaParent = config?.MediaParentId;
|
||||
|
||||
Reference in New Issue
Block a user