-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Found a bug with dynamic-component containing a set?
PostPosted: Mon Jun 11, 2007 3:28 am 
Newbie

Joined: Wed May 16, 2007 7:17 am
Posts: 7
Hi,

I'm using NHibernate 1.2GA, and when I try to define a mapping as below I generate a NullReferenceException when I try to comile the mapping document.

Code:
<dynamic-component name="CustomColumns">
   <set name="col_41" table="bugs_col_41_columnvalues" schema="bugs">
     ...
   </set>
</dynamic-component>


The exception is thrown on line 879 of HbmBinder.cs because the function GetPropertyType returns null if its argument containingType is null. I have fixed this locally by chnging line 876 from:
Code:
if (!isGeneric.HasValue)
to
Code:
if (!isGeneric.HasValue && containingType != null)


Is this a bug, or is it (quite possibly) my misuse of the libary. If its the former then I'll submit this to the bugs db?

Cheers
Chris


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 11, 2007 3:57 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Yes, it's a bug.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 11, 2007 2:31 pm 
Newbie

Joined: Wed May 16, 2007 7:17 am
Posts: 7
JIRA issue created here:

http://jira.nhibernate.org/browse/NH-1039

Cheers
Chris


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.