mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 22:43:12 +00:00
[Task 71405] fixed the Process Files endpoints and added two tests for them
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
package org.dspace.scripts;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
@@ -176,6 +177,9 @@ public class Process implements ReloadableEntity<Integer> {
|
||||
* @return The Bitstreams that are used or created by the process
|
||||
*/
|
||||
public List<Bitstream> getBitstreams() {
|
||||
if (bitstreams == null) {
|
||||
bitstreams = new LinkedList<>();
|
||||
}
|
||||
return bitstreams;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user