pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1671273 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java
Date Sat, 04 Apr 2015 15:27:21 GMT
Author: tilman
Date: Sat Apr  4 15:27:20 2015
New Revision: 1671273

URL: http://svn.apache.org/r1671273
Log:
PDFBOX-2576: avoid NPE

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java?rev=1671273&r1=1671272&r2=1671273&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java Sat Apr  4 15:27:20
2015
@@ -274,7 +274,10 @@ public class ExtractText
                                     } 
                                     finally 
                                     {
-                                        subDoc.close();
+                                        if (subDoc != null)
+                                        {
+                                            subDoc.close();
+                                        }
                                     }
                                 }
                             } 



Mime
View raw message