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:51 UTC
svn commit: r1704415 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/ShowTextAdjusted.java
Author: tilman
Date: Mon Sep 21 20:27:50 2015
New Revision: 1704415
URL: http://svn.apache.org/viewvc?rev=1704415&view=rev
Log:
PDFBOX-2982: avoid ArrayOutOfBoundsException
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/ShowTextAdjusted.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/ShowTextAdjusted.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/ShowTextAdjusted.java?rev=1704415&r1=1704414&r2=1704415&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/ShowTextAdjusted.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/ShowTextAdjusted.java Mon Sep 21 20:27:50 2015
@@ -34,6 +34,10 @@ public class ShowTextAdjusted extends Op
@Override
public void process(Operator operator, List<COSBase> arguments) throws IOException
{
+ if (arguments.size() < 1)
+ {
+ return;
+ }
COSBase base = arguments.get(0);
if (!(base instanceof COSArray))
{