]> source.dussan.org Git - poi.git/commitdiff
Missing font-system can throw two other types of exception
authorDominik Stadler <centic@apache.org>
Mon, 11 Apr 2022 13:51:26 +0000 (13:51 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 11 Apr 2022 13:51:26 +0000 (13:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899748 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/ss/util/SheetUtil.java

index ebe20471c6cfa7b678cc044f9d8ef10435f8e84d..5ade711dee21152501e421ffd2ea239719aa8693 100644 (file)
@@ -297,7 +297,7 @@ public class SheetUtil {
         try {
             TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
             return (int) layout.getAdvance();
-        } catch (UnsatisfiedLinkError e) {
+        } catch (UnsatisfiedLinkError | NoClassDefFoundError | InternalError e) {
             if (ignoreMissingFontSystem) {
                 return DEFAULT_CHAR_WIDTH;
             }