[DS-323] Add check for null filter list in commandline processing

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4464 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Richard Rodgers
2009-10-23 21:13:09 +00:00
parent 2f6e46a541
commit ffd7c48153

View File

@@ -286,7 +286,7 @@ public class ItemUpdate {
pr("Delete bitstreams ");
String[] filterNames = line.getOptionValues('D');
if (filterNames.length > 1)
if ((filterNames != null) && (filterNames.length > 1))
{
pr("Error: Only one filter can be a used at a time.");
System.exit(1);