mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Collections.EMPTY_LIST is immutable, possibly causing addBitstream to throw exception.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
package org.dspace.scripts;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.persistence.Column;
|
||||
@@ -181,7 +181,7 @@ public class Process implements ReloadableEntity<Integer> {
|
||||
*/
|
||||
public List<Bitstream> getBitstreams() {
|
||||
if (bitstreams == null) {
|
||||
bitstreams = Collections.EMPTY_LIST;
|
||||
bitstreams = new ArrayList<>();
|
||||
}
|
||||
return bitstreams;
|
||||
}
|
||||
|
Reference in New Issue
Block a user