Skip to content

Commit

Permalink
fix #179
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Apr 18, 2023
1 parent c7f2aa2 commit ef4892a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pdf/src/object/types.rs
Original file line number Diff line number Diff line change
@@ -930,7 +930,13 @@ impl<T: Object> Object for NameTree<T> {
node: NameTreeNode::Leaf (new_names),
}
}
(None, None) => bail!("Neither Kids nor Names present in NameTree node.")
(None, None) => {
warn!("Neither Kids nor Names present in NameTree node.");
NameTree {
limits,
node: NameTreeNode::Intermediate(vec![])
}
}
})
}
}

0 comments on commit ef4892a

Please sign in to comment.