pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1760158 - /pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java
Date Sat, 10 Sep 2016 12:59:30 GMT
Author: tilman
Date: Sat Sep 10 12:59:30 2016
New Revision: 1760158

URL: http://svn.apache.org/viewvc?rev=1760158&view=rev
Log:
PDFBOX-3491: return 0 for empty string

Modified:
    pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java

Modified: pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java?rev=1760158&r1=1760157&r2=1760158&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java (original)
+++ pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java Sat Sep
10 12:59:30 2016
@@ -387,6 +387,10 @@ public class CFFParser
             // see PDFBOX-1522
             sb.append("0");
         }
+        if (sb.length() == 0)
+        {
+            return 0d;
+        }
         return Double.valueOf(sb.toString());
     }
 



Mime
View raw message