Bug 66425: Avoid exceptions found via poi-fuzz

Fix one expected exception-text which is different
on newer Java versions

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63266

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913383 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2023-10-27 10:07:57 +00:00
parent ef743728ab
commit 5cc8b9958c
2 changed files with 1 additions and 1 deletions

View File

@ -836,7 +836,7 @@ public class XSSFTextParagraph implements Iterable<XSSFTextRun>{
public ListAutoNumber getBulletAutoNumberScheme() {
ParagraphPropertyFetcher<ListAutoNumber> fetcher = new ParagraphPropertyFetcher<ListAutoNumber>(getLevel()){
public boolean fetch(CTTextParagraphProperties props){
if(props.isSetBuAutoNum()) {
if(props.isSetBuAutoNum() && props.getBuAutoNum().getType() != null) {
setValue(ListAutoNumber.values()[props.getBuAutoNum().getType().intValue() - 1]);
return true;
}