aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFParser.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-12-15 08:26:25 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-12-15 19:07:42 +0100
commit2693a082abc9ff73a1cc2fa4442cded0ae716a08 (patch)
treee4bd401f9a552bc95f8ffceaa52400c1264c8b83 /libqpdf/QPDFParser.cc
parent5057bfa642c7711f7b356ac32ffba76ccb09f1f5 (diff)
downloadqpdf-2693a082abc9ff73a1cc2fa4442cded0ae716a08.tar.zst
Fix check for direct nulls in QPDFParser::parse
Diffstat (limited to 'libqpdf/QPDFParser.cc')
-rw-r--r--libqpdf/QPDFParser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFParser.cc b/libqpdf/QPDFParser.cc
index eca55a71..e00cd606 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());