[DS-2908] Exception is created but not thrown in the CollectionServiceImpl

This commit is contained in:
KevinVdV
2015-11-20 12:30:25 +01:00
parent 440c26c861
commit c4e29eff7e

View File

@@ -337,7 +337,7 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
collection.setWorkflowStep3(group);
break;
default:
new IllegalAccessException("Illegal step count: " + step);
throw new IllegalArgumentException("Illegal step count: " + step);
}
}