pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1825122 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ToUnicodeWriter.java
Date Fri, 23 Feb 2018 12:02:06 GMT
Author: msahyoun
Date: Fri Feb 23 12:02:05 2018
New Revision: 1825122

URL: http://svn.apache.org/viewvc?rev=1825122&view=rev
Log:
PDFBOX-4122: initialize dstPrev to empty string to avoid potential NPE although this wouldn't
happen given the follow up tests

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ToUnicodeWriter.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ToUnicodeWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ToUnicodeWriter.java?rev=1825122&r1=1825121&r2=1825122&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ToUnicodeWriter.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ToUnicodeWriter.java
Fri Feb 23 12:02:05 2018
@@ -116,7 +116,7 @@ final class ToUnicodeWriter
         List<String> dstString = new ArrayList<>();
 
         int srcPrev = -1;
-        String dstPrev = null;
+        String dstPrev = "";
 
         int srcCode1 = -1;
 



Mime
View raw message