File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
kernel/src/main/java/com/itextpdf/kernel/pdf Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public PdfName getKey() {
120
120
@ Override
121
121
public PdfObject getValue () {
122
122
PdfObject obj = entry .getValue ();
123
- if (obj .isIndirectReference ()) {
123
+ if (obj != null && obj .isIndirectReference ()) {
124
124
obj = ((PdfIndirectReference ) obj ).getRefersTo (true );
125
125
}
126
126
return obj ;
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public boolean hasNext() {
119
119
@ Override
120
120
public PdfObject next () {
121
121
PdfObject obj = parentIterator .next ();
122
- if (obj .isIndirectReference ()) {
122
+ if (obj != null && obj .isIndirectReference ()) {
123
123
obj = ((PdfIndirectReference ) obj ).getRefersTo (true );
124
124
}
125
125
return obj ;
You can’t perform that action at this time.
0 commit comments