Avoid NPE with broken files when handling text-shapes

This commit is contained in:
Dominik Stadler 2026-01-07 00:34:22 +01:00
parent 0ec4434f59
commit ac989335d7
3 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ implements TextShape<HSLFShape,HSLFTextParagraph> {
return -1;
}
List<HSLFTextParagraph> paras = HSLFTextParagraph.findTextParagraphs(_txtbox, getSheet());
return (paras.isEmpty() || paras.get(0).getIndex() == -1) ? -1 : paras.get(0).getRunType();
return (paras == null || paras.isEmpty() || paras.get(0).getIndex() == -1) ? -1 : paras.get(0).getRunType();
}
/**

Binary file not shown.