Fixing a bug for null contentRules

This commit is contained in:
Ioannis Diplas 2019-12-02 11:16:48 +00:00
parent 0d60114c78
commit 35acc1f3b9
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ public class ValidatorServiceImpl implements ValidatorService {
/////////////////////////////////////////////////////////////////////////////////////////
// FIXME: this is a hack for CRIS Jan Dvorak Validator, should be implemented properly //
/////////////////////////////////////////////////////////////////////////////////////////
if (jobForValidation.getSelectedContentRules().size() == 1 &&
if (jobForValidation.getSelectedContentRules()!=null && jobForValidation.getSelectedContentRules().size() == 1 &&
jobForValidation.getSelectedContentRules().contains(-1000)) {
crisValidatorExecutor.submit(jobForValidation.getBaseUrl(), jobForValidation.getUserEmail());
} else {