mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 02:54:20 +00:00
[DS-742] fix ArrayBounds exception
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5756 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -159,7 +159,7 @@ public class EmbargoManager
|
||||
DCDate result = null;
|
||||
|
||||
// Its poor form to blindly use an object that could be null...
|
||||
if(terms != null && terms[0] != null)
|
||||
if(terms != null && terms.length > 0)
|
||||
{
|
||||
result = setter.parseTerms(context, item, terms.length > 0 ? terms[0].value : null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user