Skip to content

Commit 02e98aa

Browse files
LonelyMidoriyaMaximPlusov
authored andcommitted
Fix bug when font is null and getWeight() method is called
1 parent 8aeeb0e commit 02e98aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/verapdf/pd/font/cff/CFFFontProgram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public String getWeight() {
221221
} catch (IOException exception) {
222222
return null;
223223
}
224-
return font.getWeight();
224+
return font != null ? font.getWeight() : null;
225225
}
226226

227227
@Override

0 commit comments

Comments
 (0)