Skip to content

Commit 19ff679

Browse files
committed
PDFBOX-5660: remove unneeded null check
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1931017 13f79535-47bb-0310-9956-ffa450edef68
1 parent d1c4ba7 commit 19ff679

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ else if (!type.type().isSimple() || type.card().isArray() || type.type() == Type
383383
+ "' is a structured or array type, but attributes are simple types");
384384
}
385385
// PDFBOX-6125: Default to text or skip
386-
if (attr.getValue() == null || attr.getValue().isEmpty())
386+
if (attr.getValue().isEmpty())
387387
{
388388
schema.removeAttribute(attr.getLocalName());
389389
return;
@@ -1188,7 +1188,7 @@ else if (!type.type().isSimple() || type.card().isArray() || type.type() == Type
11881188
+ "' is a structured or array type, but attributes are simple types");
11891189
}
11901190
// PDFBOX-6125: Default to text or skip
1191-
if (attr.getValue() == null || attr.getValue().isEmpty())
1191+
if (attr.getValue().isEmpty())
11921192
{
11931193
continue;
11941194
}

0 commit comments

Comments
 (0)