Skip to content

Commit 1deb0d8

Browse files
LonelyMidoriyaMaximPlusov
authored andcommitted
Fix NPE in parseChunk()
1 parent f71fb2b commit 1deb0d8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wcag-validation/src/main/java/org/verapdf/gf/model/impl/sa/GFSAContentStream.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ protected void parseChunks() {
9191
parentObjectKey, markedContent, xObjectName);
9292
}
9393
}
94-
}
94+
} else {
95+
this.artifacts = Collections.emptyList();
96+
}
9597
} catch (IOException e) {
9698
LOGGER.log(Level.WARNING, "Error while parsing content stream. " + e.getMessage(), e);
9799
this.artifacts = Collections.emptyList();

0 commit comments

Comments
 (0)