Maybe instead of throwing exception creating empty list would work for you
(I often use it to avoid routine null checks )

public void setObjects(List<Object> objects){
  if (objects == null)
  {
   objects = new ArrayLis();
  }
  this.objects = objects;
}

Reply via email to