From 85fead141000ed0257f7a28ea2c4e7bb7106491a Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Fri, 22 Apr 2005 11:16:09 +0000 Subject: [PATCH] bug 34435 , submitted by Nick Burch. Thanks git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353645 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/ddf/EscherSpRecord.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/ddf/EscherSpRecord.java b/src/java/org/apache/poi/ddf/EscherSpRecord.java index e35c510f44..93426115d2 100644 --- a/src/java/org/apache/poi/ddf/EscherSpRecord.java +++ b/src/java/org/apache/poi/ddf/EscherSpRecord.java @@ -154,7 +154,10 @@ public class EscherSpRecord result.append( ( flags & FLAG_BACKGROUND ) != 0 ? "|BACKGROUND" : "" ); result.append( ( flags & FLAG_HASSHAPETYPE ) != 0 ? "|HASSHAPETYPE" : "" ); - result.deleteCharAt(0); + //need to check, else blows up on some records - bug 34435 + if(result.length() > 0) { + result.deleteCharAt(0); + } return result.toString(); }