Skip to content

Commit

Permalink
Update getDirectBase in COSIndirect
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Oct 7, 2024
1 parent e20dd57 commit d8fec7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/verapdf/cos/COSIndirect.java
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ public COSObject getDirect() {

@Override
public COSBase getDirectBase() {
return this.document != null ? this.document.getObject(key).get() : this.child.get();
COSObject direct = getDirect();
return direct != null ? direct.getDirectBase() : null;
}

@Override
Expand Down

0 comments on commit d8fec7c

Please sign in to comment.