]> source.dussan.org Git - poi.git/commitdiff
skip incorrect MMSRecord in xls
authorMaxim Valyanskiy <maxcom@apache.org>
Tue, 27 Apr 2010 09:24:52 +0000 (09:24 +0000)
committerMaxim Valyanskiy <maxcom@apache.org>
Tue, 27 Apr 2010 09:24:52 +0000 (09:24 +0000)
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

index c4868b837743d6cb904300509da226ad263ca426..cc28f94d4ccc85873fefb73809cd65c218cb2e7d 100644 (file)
@@ -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();
     }