Please create a JIRA test case for this.

On Tue, Feb 17, 2009 at 1:02 PM, mattcole <[email protected]> wrote:

>
> Hi,
> I have a class with a method that accepts a generic argument as
> follows:
>
> public virtual IList<TargetType>
> GetTargetsOfRoleWithPermission<TargetType>(Permission permission)
>
> that seems to be causing a problem with the proxy returned from
> NHibernate for the Person object.   I'm getting a null reference
> exception and a stack trace of:
>
> [NullReferenceException: Object reference not set to an instance of an
> object.]
>   System.Reflection.RuntimeMethodInfo.Equals(Object obj) +153
>   NHibernate.Proxy.Poco.BasicLazyInitializer.Invoke(MethodBase
> method, Object[] args, Object proxy) +1309
>   NHibernate.ByteCode.Castle.LazyInitializer.Intercept(IInvocation
> invocation) +280
>   Castle.DynamicProxy.AbstractInvocation.Proceed() +442
>
> As a test I've written a non-generic version of the method (which
> differs in funtionality slightly obviously) which works fine.  I can't
> actually even step into the method above so there's no issue in the
> code there.  Tests that test that code without using a proxy work fine
> also.
>
> I thought it maybe stemmed from my version of DynamicProxy2 so I got
> the latest build off the trunk from the Castle site but it didn't
> help.
>
> Any help would be greatly appreciated.
>
> Matt
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to