2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-30 08:50:51 +00:00

Fix check for direct nulls in QPDFParser::parse

This commit is contained in:
m-holger 2022-12-15 07:26:25 +00:00 committed by Jay Berkenbilt
parent 5057bfa642
commit 2693a082ab

View File

@ -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());