From 2dad9b754328bae207c0468d3a9b9116fe5bd514 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sat, 26 Oct 2019 05:26:44 +0000 Subject: [PATCH] Adjust an error message slightly git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868980 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/model/InternalWorkbook.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/java/org/apache/poi/hssf/model/InternalWorkbook.java b/src/java/org/apache/poi/hssf/model/InternalWorkbook.java index f397ed0fbb..8b0ac7569e 100644 --- a/src/java/org/apache/poi/hssf/model/InternalWorkbook.java +++ b/src/java/org/apache/poi/hssf/model/InternalWorkbook.java @@ -447,8 +447,7 @@ public final class InternalWorkbook { } if (index > (numfonts - 1)) { throw new ArrayIndexOutOfBoundsException( - "There are only " + numfonts - + " font records, you asked for " + idx); + "There are only " + numfonts + " font records, but you asked for index " + idx); } return ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index); -- 2.39.5