From: NHibernate J. <mik...@us...> - 2006-10-24 17:59:43
|
"System.NullReferenceException": When load entity class form table's column contained NULL value. ------------------------------------------------------------------------------------------------- Key: NH-770 URL: http://jira.nhibernate.org/browse/NH-770 Project: NHibernate Type: Bug Components: Core Versions: 1.2.0.Beta1 Reporter: TREEBHOPH Priority: Trivial I use NHibernate 1.2.0 Beta1 with MySQL 5.0 running on .NET FRAMEWORK 2.0, ASP.NET 2.0 "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 contains NULL value, column's type is Varchar; however if the colums has any value , the entity class can be loaded without ERROR! The entity class that i loaded is a single class which no assiciation to anothor class. So I think the ERROR is BUG. <?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 |