mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
Merge pull request #2396 from TexasDigitalLibrary/dspace-6_x-4211-metadata-export-empty-community
DS-4211: Set Item iterator to emptyIterator() so that it's never null
This commit is contained in:
@@ -18,6 +18,7 @@ import org.dspace.core.Context;
|
||||
import org.dspace.handle.factory.HandleServiceFactory;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
@@ -101,7 +102,7 @@ public class MetadataExport
|
||||
{
|
||||
// Add all the collections
|
||||
List<Collection> collections = community.getCollections();
|
||||
Iterator<Item> result = null;
|
||||
Iterator<Item> result = Collections.<Item>emptyIterator();
|
||||
for (Collection collection : collections)
|
||||
{
|
||||
for (int i = 0; i < indent; i++)
|
||||
|
Reference in New Issue
Block a user