@@ -376,7 +376,7 @@ private void validateEidPermissions(List<ExtRequestPrebidDataEidPermissions> eid
376376 boolean isDebugEnabled ,
377377 List <String > warnings ) throws ValidationException {
378378
379- if (ObjectUtils .isEmpty (eidPermissions )) {
379+ if (CollectionUtils .isEmpty (eidPermissions )) {
380380 return ;
381381 }
382382
@@ -385,10 +385,12 @@ private void validateEidPermissions(List<ExtRequestPrebidDataEidPermissions> eid
385385 throw new ValidationException ("request.ext.prebid.data.eidpermissions[i] can't be null" );
386386 }
387387
388- validateEidPermissionCriteria (eidPermission .getInserter (),
388+ validateEidPermissionCriteria (
389+ eidPermission .getInserter (),
389390 eidPermission .getSource (),
390391 eidPermission .getMatcher (),
391392 eidPermission .getMm ());
393+
392394 validateEidPermissionBidders (eidPermission .getBidders (), aliases , isDebugEnabled , warnings );
393395 }
394396 }
@@ -397,10 +399,8 @@ private void validateEidPermissionCriteria(String inserter,
397399 String source ,
398400 String matcher ,
399401 Integer mm ) throws ValidationException {
400- if (StringUtils .isEmpty (inserter )
401- && StringUtils .isEmpty (source )
402- && StringUtils .isEmpty (matcher )
403- && mm == null ) {
402+
403+ if (StringUtils .isAllEmpty (inserter , source , matcher ) && mm == null ) {
404404 throw new ValidationException ("Missing required parameter(s) in request.ext.prebid.data.eidPermissions[]. "
405405 + "Either one or a combination of inserter, source, matcher, or mm should be defined." );
406406 }
0 commit comments