Skip to content

Commit b2abf98

Browse files
Fix bug when markInfo could be null
1 parent bc96bb8 commit b2abf98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation-model/src/main/java/org/verapdf/gf/model/impl/cos/GFCosDocument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public Boolean getSuspects() {
306306
return null;
307307
}
308308
COSBase markInfo = markInfoObject.getDirectBase();
309-
if (markInfo.getType() == COSObjType.COS_DICT) {
309+
if (markInfo != null && markInfo.getType() == COSObjType.COS_DICT) {
310310
return markInfo.getBooleanKey(ASAtom.SUSPECTS);
311311
}
312312
LOGGER.log(Level.WARNING,

0 commit comments

Comments
 (0)