From: NHibernate J. <mik...@us...> - 2006-10-25 04:24:30
|
[ http://jira.nhibernate.org/browse/NH-772?page=all ] Sergey Koshcheyev updated NH-772: --------------------------------- Priority: Minor (was: Critical) Please submit more information: a test case (classes, mappings, code) would be great. Also submit the exception stack trace. > "System.NullReferenceException": When load entity class form table's column contained NULL value. > ------------------------------------------------------------------------------------------------- > > Key: NH-772 > URL: http://jira.nhibernate.org/browse/NH-772 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta1 > Reporter: TREEBHOPH > Priority: Minor > > "System.NullReferenceException: Object reference not set to an instance of an object" > I get this ERROR when i try to load Entity Class from a table's column contained NULL value, the column's type is MySql Varchar; however if the colums has some value , the entity class can be loaded without ERROR! > The class that i load is a single class that no relationship to another class. > <?xml version="1.0" encoding="utf-8" ?> > <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0"> > <class name="DomainModelObject.GlobalUserAccount, DomainModelObject" table="glb_user_account" lazy="false"> > <id name="UserID" column="user_id" type="Int64"> > <generator class="identity" /> > </id> > <property name="LoginName" column="user_login_name" type="String" length="50" /> > <property name="Password" column="user_passwd" type="String" length="200" /> > <property name="Email" column="user_email" type="String" length="50" /> > <property name="RegistTime" column="user_create_time" type="DateTime" /> > </class> > </hibernate-mapping> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |