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