Skip to content

Commit

Permalink
v13 - > v14 null checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Apr 17, 2024
1 parent 08f4392 commit cb33fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions uSync.BackOffice/SyncHandlers/SyncHandlerRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,7 @@ private bool ShouldExportDeletedFile(TObject item, HandlerSettings config)
try
{
var deletingAttempt = serializer.Serialize(item, new SyncSerializerOptions(config.Settings));
if (deletingAttempt.Item is null) return true;
return ShouldExport(deletingAttempt.Item, config);
}
catch (Exception ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ protected string GetExportValue(object? value, IPropertyType propertyType, strin
return jsonNode.SerializeJsonNode();
}
logger.LogTrace("Export Value {PropertyEditorAlias} {exportValue}", propertyType.PropertyEditorAlias, exportValue ?? string.Empty);
return exportValue ?? string.Empty
return exportValue ?? string.Empty;
}

protected object? GetImportValue(string value, IPropertyType propertyType, string culture, string segment)
Expand Down

0 comments on commit cb33fa6

Please sign in to comment.