Skip to content

Commit

Permalink
fix object not found issue #7 (thanks Wyatt Roersma)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbremer committed Jun 11, 2018
1 parent 8d6a370 commit f476b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peepdf/PDFCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -4322,7 +4322,7 @@ def updateObjects(self):
self.setObject(compressedId, compressedObject, offset)
del(compressedObjectsDict)
for id in self.referencedJSObjects:
if id not in self.containingJS:
if id not in self.containingJS and id in self.objects:
object = self.objects[id].getObject()
if object is None:
errorMessage = 'Object is None'
Expand Down

0 comments on commit f476b4d

Please sign in to comment.