[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:
Richard Rodgers
2010-11-06 17:20:42 +00:00
parent 1ce661dfe8
commit 7e790f684d

View File

@@ -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);
}