ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koka Kiknadze" <226...@gmail.com>
Subject Re: Map nullValue to empty collection
Date Fri, 09 Feb 2007 10:27:30 GMT
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;
}

Mime
View raw message