Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDunn committed Sep 3, 2022
1 parent f47ad41 commit e952d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ private byte[] GetC14NDigest(HashAlgorithm hash)
bool isKeyedHashAlgorithm = hash is KeyedHashAlgorithm;
if (isKeyedHashAlgorithm || !_bCacheValid || !SignedInfo!.CacheValid)
{
string? baseUri = _containingDocument!.BaseURI;
string? baseUri = _containingDocument?.BaseURI;
XmlResolver? resolver = (_bResolverSet ? _xmlResolver : XmlResolverHelper.GetThrowingResolver());
XmlDocument doc = Utils.PreProcessElementInput(SignedInfo!.GetXml(), resolver!, baseUri );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ internal static XmlDocument PreProcessDocumentInput(XmlDocument document, XmlRes
return doc;
}

internal static XmlDocument PreProcessElementInput(XmlElement elem, XmlResolver xmlResolver, string baseUri)
internal static XmlDocument PreProcessElementInput(XmlElement elem, XmlResolver xmlResolver, string? baseUri)
{
if (elem is null)
{
Expand Down

0 comments on commit e952d69

Please sign in to comment.