Skip to content

Commit

Permalink
Merge pull request #271 from BezrukovM/glyph-npe-fix
Browse files Browse the repository at this point in the history
Fixed NPE in glyphs
  • Loading branch information
BezrukovM authored May 25, 2018
2 parents c298c09 + 2c9a6ca commit 9f95633
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected GFGlyph(PDFont font, int glyphCode, String type, int renderingMode, St
} else if (font instanceof PDType0Font) {
try {
FontProgram pr = font.getFontProgram();
if (pr == null) {
if (pr == null || !pr.isSuccessfulParsing()) {
this.name = null;
} else {
pr.parseFont();
Expand Down

0 comments on commit 9f95633

Please sign in to comment.