From 2693a082abc9ff73a1cc2fa4442cded0ae716a08 Mon Sep 17 00:00:00 2001 From: m-holger Date: Thu, 15 Dec 2022 07:26:25 +0000 Subject: [PATCH] Fix check for direct nulls in QPDFParser::parse --- libqpdf/QPDFParser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libqpdf/QPDFParser.cc b/libqpdf/QPDFParser.cc index eca55a7..e00cd60 100644 --- a/libqpdf/QPDFParser.cc +++ b/libqpdf/QPDFParser.cc @@ -284,7 +284,7 @@ QPDFParser::parse(bool& empty, bool content_stream) case st_dictionary: case st_array: - if (!indirect_ref && !object.isDirectNull()) { + if (!indirect_ref && !is_null) { // No need to set description for direct nulls - they will // become implicit. setDescriptionFromInput(object, input->getLastOffset()); -- libgit2 0.21.4