keeps / commons-ip

Commons IP is project that provide a command-line tool and Java Library to validate and manipulate E-ARK Information Packages, so to create or process E-ARK SIP and AIP and also validate them against official specifications.
http://keeps.github.io/commons-ip/
GNU Lesser General Public License v3.0
11 stars 14 forks source link

Fixes #204: NullPointerException when validating representation without descriptive metadata and no dmdSec in METS #208

Closed ThomasEdvardsen closed 1 year ago

ThomasEdvardsen commented 1 year ago

Moving the if (folder != null) condition to ensure that counting descriptive metadata files does not throw a NullPointerException when no descriptive files exists. Fixes #204