mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-01-09 14:04:35 +08:00
skip completely null dictionaries #300
This commit is contained in:
@@ -38,6 +38,11 @@
|
||||
|
||||
private static string GetEntryOrDefault(DictionaryToken infoDictionary, NameToken key)
|
||||
{
|
||||
if (infoDictionary == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!infoDictionary.TryGet(key, out var value))
|
||||
{
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user