Fixed the exception in the newsletter job #3421

This commit is contained in:
Jamie 2020-03-13 09:33:42 +00:00 committed by GitHub
commit 76144d3ee2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -730,7 +730,7 @@ namespace Ombi.Schedule.Jobs.Ombi
finalsb.Append("<br />");
}
var summary = info.summary;
var summary = info?.summary ?? string.Empty;
if (summary.Length > 280)
{
summary = summary.Remove(280);