#481 skip resource entry if null token

This commit is contained in:
Eliot Jones
2022-10-09 13:06:04 -04:00
parent 2f9a9ace9a
commit c643facee0

View File

@@ -52,6 +52,11 @@
foreach (var pair in xobjectDictionary.Data)
{
if (pair.Value is NullToken)
{
continue;
}
if (!(pair.Value is IndirectReferenceToken reference))
{
throw new InvalidOperationException($"Expected the XObject dictionary value for key /{pair.Key} to be an indirect reference, instead got: {pair.Value}.");