mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
[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:
@@ -286,7 +286,7 @@ public class ItemUpdate {
|
|||||||
pr("Delete bitstreams ");
|
pr("Delete bitstreams ");
|
||||||
|
|
||||||
String[] filterNames = line.getOptionValues('D');
|
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.");
|
pr("Error: Only one filter can be a used at a time.");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
|
Reference in New Issue
Block a user