File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
xmpbox/src/main/java/org/apache/xmpbox/xml Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -991,13 +991,10 @@ private Element findDescriptionsParent(Element root) throws XmpParsingException
991991 // empty description
992992 throw new XmpParsingException (ErrorType .Format , "No rdf description found in xmp" );
993993 }
994- else if (nl .getLength () > 1 )
994+ else if (nl .getLength () > 1 && strictParsing )
995995 {
996996 // only expect one element
997- if (strictParsing )
998- {
999- throw new XmpParsingException (ErrorType .Format , "More than one element found in x:xmpmeta" );
1000- }
997+ throw new XmpParsingException (ErrorType .Format , "More than one element found in x:xmpmeta" );
1001998 }
1002999 // find element (there may be a text before the element)
10031000 for (int i = 0 ; i < nl .getLength (); ++i )
You can’t perform that action at this time.
0 commit comments