ChildDataPortal.Create fails to instantiate exception

ChildDataPortal.Create fails to instantiate exception

Old forum URL: forums.lhotka.net/forums/t/8828.aspx


nelis posted on Thursday, April 22, 2010

When create of a child object fails (in my case by an exception thrown in AddBusinessRules), the catch in ChildDataPortal.Create is executed. When both 'target' and 'obj' are null the throw Exception statement itself throws a null reference exception because it references obj.Instance.

This makes debugging very difficult and should be fixed.

I am using 3.8.1. Couldn't find any previous posts about this.

RockfordLhotka replied on Thursday, April 22, 2010

I see what you mean - that is not good, and I'll add it to the bug list. Thanks!

nelis replied on Monday, July 26, 2010

This bug is still in 3.8.4 and 4.0.0

RockfordLhotka replied on Monday, July 26, 2010

I see the issue too, I'll reopen the bug.

Copyright (c) Marimer LLC