Issue Type: Bug Bug
Affects Versions: 4.3.0.Final
Assignee: Unassigned
Components: engine
Created: 12/Jun/13 9:20 PM
Description:

I have a discriminator that throws a lazyloading exception in some cases:

public class LanguageDiscriminator implements Discriminator {

	private static final Log log = LogFactory.getLog(LanguageDiscriminator.class);
	
	@Override
	public String getAnalyzerDefinitionName(
			Object value,
			Object entity,
			String field) {
		
		CountrySite cs = (CountrySite) value;

		if(cs != null)
			return cs.getCountry().getDefaultLanguage().getLanguageCode(); //BOOM
		
		log.warn("LanguageDiscriminator: No countrySite found, using Portugese ");
		
		return "pt";
	}

}

I'm trying to isolate the condition, but I wanted to note this here.

Project: Hibernate Search
Priority: Major Major
Reporter: Marc Schipperheyn
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira