Apply this patch LAST, after the other two, since it assumes their changes are in place already. This fixes a bug that only appears in debug mode in some circumstances: --- src/org/dspace/content/packager/AbstractMETSIngester.java.orig 2007-01-04 03:00:03.000000000 -0500 +++ src/org/dspace/content/packager/AbstractMETSIngester.java 2007-01-05 15:54:32.000000000 -0500 @@ -289,8 +289,13 @@ checkManifest(manifest); if (log.isDebugEnabled()) - log.debug("After object TechMD: parent="+result.getParent().getHandle()+ - ", hdl="+result.getHandle()); + { + String h = result.getHandle(); + String p = (result.getParent() == null) ? null : + result.getParent().getHandle(); + log.debug("After object TechMD: parent="+(p == null?"null":p)+ + ", hdl="+(h == null?"null":h)); + } // 5. create shell of object -- use parent and handle from // TechMD above, if any, and if options don't say to ignore them: