Skip to content

Commit

Permalink
fix pr
Browse files Browse the repository at this point in the history
  • Loading branch information
sleushunou committed Jul 17, 2024
1 parent 2e412f5 commit 64f984d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Softeq.XToolkit.Common.iOS/Extensions/NSStringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ public static NSMutableAttributedString BuildAttributedStringFromHtml(
StringEncoding = encoding
};

var error = new NSError();
NSError? error = null;

try
{
#pragma warning disable CS8601 // Possible null reference assignment.
var attributedString = new NSAttributedString(html, importParams, ref error);
#pragma warning restore CS8601 // Possible null reference assignment.
return new NSMutableAttributedString(attributedString);
}
catch (Exception ex)
Expand Down

0 comments on commit 64f984d

Please sign in to comment.