mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-29 13:48:54 +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)
|
outlineRootObj := core.ResolveReference(outlinesObj)
|
||||||
common.Log.Trace("Outline root: %v", outlineRootObj)
|
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")
|
common.Log.Trace("Outline root is null - no outlines")
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user