mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-14 02:44:58 +08:00
FIX : undefined references is a valid use case.
I tried to mitigate the breaking change by keep on throwing in most uses of the change method.
This commit is contained in:
@@ -664,7 +664,7 @@
|
||||
|
||||
if (!objectLocationProvider.TryGetOffset(reference, out var offset))
|
||||
{
|
||||
throw new InvalidOperationException($"Could not find the object with reference: {reference}.");
|
||||
return null;
|
||||
}
|
||||
|
||||
// Negative offsets refer to a stream with that number.
|
||||
|
Reference in New Issue
Block a user