mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Change one exception to warning-log to avoid regressions in mass-tests
This avoids "breaking" a few documents which could be opened before. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918118 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
329a659739
commit
3f243f65ab
@ -19,6 +19,8 @@ package org.apache.poi.hwpf.model;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.ddf.DefaultEscherRecordFactory;
|
||||
import org.apache.poi.ddf.EscherBSERecord;
|
||||
import org.apache.poi.ddf.EscherBlipRecord;
|
||||
@ -33,6 +35,7 @@ import org.apache.poi.util.LittleEndian;
|
||||
|
||||
@Internal
|
||||
public class PICFAndOfficeArtData {
|
||||
private static final Logger LOG = LogManager.getLogger(PicturesTable.class);
|
||||
|
||||
/**
|
||||
* Can contain either a {@link EscherBlipRecord} or a {@link EscherBSERecord}.
|
||||
@ -89,7 +92,7 @@ public class PICFAndOfficeArtData {
|
||||
// [MS-ODRAW] allows for multiple records in a OfficeArtInlineSpContainer, which is what we're parsing here.
|
||||
// However, in the context of a HWPF document, there should be only 1.
|
||||
if (_blipRecords.size() != 1) {
|
||||
throw new IllegalStateException("Should only have one BLIP-Record, but had: " + _blipRecords.size());
|
||||
LOG.atWarn().log("Should only have one BLIP-Record, but had: " + _blipRecords.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -61,7 +61,6 @@ public class TestWordToConverterSuite {
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-4947285593948160.doc",
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5440721166139392.doc",
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5050208641482752.doc",
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-4892412469968896.doc",
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-6610789829836800.doc"
|
||||
);
|
||||
|
||||
|
||||
@ -54,7 +54,6 @@ public class TestWordToTextConverter {
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-4947285593948160.doc",
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5440721166139392.doc",
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5050208641482752.doc",
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-4892412469968896.doc",
|
||||
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-6610789829836800.doc"
|
||||
);
|
||||
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user