Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/Parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/xpdf/Parser.cc')
-rw-r--r--pdf/xpdf/Parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/xpdf/Parser.cc b/pdf/xpdf/Parser.cc
index 2f881d4..0aa66d3 100644
--- a/pdf/xpdf/Parser.cc
+++ b/pdf/xpdf/Parser.cc
@@ -176,7 +176,7 @@ Stream *Parser::makeStream(Object *dict) {
}
// check for length in damaged file
- if (xref->getStreamEnd(pos, &endPos)) {
+ if (xref && xref->getStreamEnd(pos, &endPos)) {
length = endPos - pos;
}