mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-26 13:48:55 +08:00
Fix outline null object check (#367)
This commit is contained in:
parent
5777ee1394
commit
6b8d5c42f7
@ -275,7 +275,7 @@ func (r *PdfReader) loadOutlines() (*PdfOutlineTreeNode, error) {
|
||||
outlineRootObj := core.ResolveReference(outlinesObj)
|
||||
common.Log.Trace("Outline root: %v", outlineRootObj)
|
||||
|
||||
if _, isNull := outlineRootObj.(*core.PdfObjectNull); isNull {
|
||||
if isNull := core.IsNullObject(outlineRootObj); isNull {
|
||||
common.Log.Trace("Outline root is null - no outlines")
|
||||
return nil, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user