From: NHibernate J. <mik...@us...> - 2006-10-24 18:03:37
|
"System.NullReferenceException": When load class form Table's Column contained NULL value. ------------------------------------------------------------------------------------------ Key: NH-771 URL: http://jira.nhibernate.org/browse/NH-771 Project: NHibernate Type: Bug Components: Core Versions: 1.2.0.Beta1 Reporter: TREEBHOPH Priority: Critical "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 |