File tree Expand file tree Collapse file tree
xmpbox/src/main/java/org/apache/xmpbox/xml Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments