TAMULib / DSpace

(Official) The DSpace digital asset management system that powers your Institutional Repository
https://wiki.duraspace.org/display/DSDOC4x/Introduction
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Editing item with unchecked "previously published" box generates null pointer if changed later #193

Open jcreel opened 3 years ago

jcreel commented 3 years ago

When editing an item, leave the "previously published" unchecked. Later in the workflow, revisit the initial step later and check it. When proceeding with further edits, a null pointer exception is generated.

Java stacktrace: java.lang.NullPointerException at org.dspace.content.DCDate.getYear(DCDate.java:298) at org.dspace.app.xmlui.aspect.submission.submit.DescribeStep.renderDateField(DescribeStep.java:806) at org.dspace.app.xmlui.aspect.submission.submit.DescribeStep.addBody(DescribeStep.java:245) at org.dspace.app.xmlui.aspect.submission.StepTransformer.addBody(StepTransformer.java:145) at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:234)...