mirror of https://github.com/apache/poi.git
safety check on throwable catch
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907656 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54fc06be81
commit
e431ec35c3
|
@ -336,7 +336,10 @@ public final class XSSFCell extends CellBase {
|
||||||
try {
|
try {
|
||||||
int idx = Integer.parseInt(_cell.getV());
|
int idx = Integer.parseInt(_cell.getV());
|
||||||
rt = (XSSFRichTextString)_sharedStringSource.getItemAt(idx);
|
rt = (XSSFRichTextString)_sharedStringSource.getItemAt(idx);
|
||||||
} catch(Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
if (ExceptionUtil.isFatal(t)) {
|
||||||
|
ExceptionUtil.rethrow(t);
|
||||||
|
}
|
||||||
rt = new XSSFRichTextString("");
|
rt = new XSSFRichTextString("");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue