From f2fbd748609e4a82ef231b60eec8591dec049a9d Mon Sep 17 00:00:00 2001 From: Maxim Valyanskiy Date: Tue, 27 Apr 2010 09:24:52 +0000 Subject: [PATCH] skip incorrect MMSRecord in xls git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@938372 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/record/MMSRecord.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/org/apache/poi/hssf/record/MMSRecord.java b/src/java/org/apache/poi/hssf/record/MMSRecord.java index c4868b8377..cc28f94d4c 100644 --- a/src/java/org/apache/poi/hssf/record/MMSRecord.java +++ b/src/java/org/apache/poi/hssf/record/MMSRecord.java @@ -43,6 +43,10 @@ public final class MMSRecord public MMSRecord(RecordInputStream in) { + if (in.remaining()==0) { + return; + } + field_1_addMenuCount = in.readByte(); field_2_delMenuCount = in.readByte(); }