Skip to content

Commit 11df488

Browse files
committed
PDFBOX-5660: avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928709 13f79535-47bb-0310-9956-ffa450edef68
1 parent ad190d2 commit 11df488

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,10 @@ private boolean probablyBarcodeFont(PDFontDescriptor fontDescriptor)
667667
private boolean isCharSetMatch(PDCIDSystemInfo cidSystemInfo, FontInfo info)
668668
{
669669
String ordering = cidSystemInfo.getOrdering();
670+
if (ordering == null)
671+
{
672+
return false;
673+
}
670674
if (info.getCIDSystemInfo() != null)
671675
{
672676
return info.getCIDSystemInfo().getRegistry().equals(cidSystemInfo.getRegistry()) &&

0 commit comments

Comments
 (0)