The addTo method that implements the add function for a collection does not get an environment as parameter, but passes the local env to the addTo_ method, which is then null.

public void addToTags(org.researchr.www.domain.Tag item)
{ 
  if(item != null && !tagsBeingSet)
  { 
    tagsBeingSet = true;
    org.researchr.www.domain.Tag oldthing = new org.researchr.www.domain.Tag();
    getTags().add(item);
    item.addToPublications(this);
    if(propertyEventsEnabled)
    { 
      this.addToTags_(hibSession, env, item, out);
    }
    java.util.List<utils.ValidationException> exceptions = new java.util.LinkedList<utils.ValidationException>();
    if(exceptions.size() > 0)
    { 
      throw new MultipleValidationExceptions(exceptions);
    }
    tagsBeingSet = false;
  }
}
Submitted by Eelco Visser on 17 March 2010 at 06:59

On 17 March 2010 at 13:43 Danny Groenewegen commented:

fixed in revision 3735

Log in to post comments