You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2015/09/21 22:27:34 UTC

svn commit: r1704414 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/operator/ShowTextGlyph.java

Author: tilman
Date: Mon Sep 21 20:27:34 2015
New Revision: 1704414

URL: http://svn.apache.org/viewvc?rev=1704414&view=rev
Log:
PDFBOX-2982: avoid ArrayOutOfBoundsException

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/operator/ShowTextGlyph.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/operator/ShowTextGlyph.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/operator/ShowTextGlyph.java?rev=1704414&r1=1704413&r2=1704414&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/operator/ShowTextGlyph.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/operator/ShowTextGlyph.java Mon Sep 21 20:27:34 2015
@@ -41,6 +41,10 @@ public class ShowTextGlyph extends Opera
      */
     public void process(PDFOperator operator, List<COSBase> arguments) throws IOException
     {
+        if (arguments.size() < 1)
+        {
+            return;
+        }
         COSBase base = arguments.get(0);
         if (!(base instanceof COSArray))
         {