pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1783531 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java
Date Sat, 18 Feb 2017 13:04:37 GMT
Author: tilman
Date: Sat Feb 18 13:04:37 2017
New Revision: 1783531

URL: http://svn.apache.org/viewvc?rev=1783531&view=rev
Log:
PDFBOX-3677: partial revert of 1782034, condition is never null

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java?rev=1783531&r1=1783530&r2=1783531&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java Sat Feb 18
13:04:37 2017
@@ -772,7 +772,7 @@ final class Type1Parser
     private void read(Token.Kind kind, String name) throws IOException
     {
         Token token = read(kind);
-        if (token == null || !token.getText().equals(name))
+        if (!token.getText().equals(name))
         {
             throw new IOException("Found " + token + " but expected " + name);
         }



Mime
View raw message