pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1843591 - /pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java
Date Thu, 11 Oct 2018 19:04:15 GMT
Author: tilman
Date: Thu Oct 11 19:04:15 2018
New Revision: 1843591

URL: http://svn.apache.org/viewvc?rev=1843591&view=rev
Log:
PDFBOX-4339: add test

Modified:
    pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java

Modified: pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java?rev=1843591&r1=1843590&r2=1843591&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java
Thu Oct 11 19:04:15 2018
@@ -320,6 +320,18 @@ public class TestPDFParser
         PDDocument.load(new File(TARGETPDFDIR, "PDFBOX-4338.pdf")).close();
     }
 
+    /**
+     * Test parsing the file from PDFBOX-4339, which brought a
+     * NullPointerException before the bug was fixed.
+     *
+     * @throws IOException
+     */
+    @Test
+    public void testPDFBox4339() throws IOException
+    {
+        PDDocument.load(new File(TARGETPDFDIR, "PDFBOX-4339.pdf")).close();
+    }
+
     private void executeParserTest(RandomAccessRead source, MemoryUsageSetting memUsageSetting)
throws IOException
     {
         ScratchFile scratchFile = new ScratchFile(memUsageSetting);



Mime
View raw message