diff options
author | Dominik Stadler <centic@apache.org> | 2024-07-14 11:26:43 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2024-07-14 11:26:43 +0000 |
commit | 7601beb5921fa38fe654ebf8f26d717a4e1966ee (patch) | |
tree | 8a19d04a7b753d991b0357be9cb762d45beda215 /poi-ooxml/src | |
parent | 148ac23c0d2e17f25d943659b5c5d769f1df9fdb (diff) | |
download | poi-7601beb5921fa38fe654ebf8f26d717a4e1966ee.tar.gz poi-7601beb5921fa38fe654ebf8f26d717a4e1966ee.zip |
Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a NullPointerException
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70273
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src')
-rw-r--r-- | poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/XDGFSheet.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/XDGFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/XDGFSheet.java index ef363efc8e..11621ded35 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/XDGFSheet.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/XDGFSheet.java @@ -73,9 +73,9 @@ public abstract class XDGFSheet { for (SectionType section: sheet.getSectionArray()) { String name = section.getN(); - if (name.equals("Geometry")) { + if ("Geometry".equals(name)) { _geometry.put(section.getIX(), new GeometrySection(section, this)); - } else if (name.equals("Character")) { + } else if ("Character".equals(name)) { _character = new CharacterSection(section, this); } else { _sections.put(name, XDGFSection.load(section, this)); |