NullReferenceException in SetProperty or GetProperty when adding row from Telerik grid #3201
Replies: 2 comments 13 replies
-
Have you got some basic unit tests to exercise your business objects in the same way as within your UI, but disassociated from it? That might be a way to split the problem in half, and escape the potential for it being a problem with the Telerik UI components. I wonder if it's to do with the way you are creating the objects in the first place. Are you getting the original objects via an injected instance of IDataPortal? Your error reminds me a bit of the type of errors you see when an object was created by newing it up, rather than it having been created by the DataPortal. That might seem obvious, but it's very easy to get wrong. Do you have any rules associated with the property that is throwing the exception? There has been some discussion elsewhere about the creation of new child objects in collections. Have a read of issue #3141, which I think resulted in a fix, but I wasn't following closely. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm currently updating csla for my blazor project to the latest version(from 5.4) and it went well for most of the update. But when I started testing the site I couldn't add or modify any grid. The grid we are using are from Telerik. When I'm trying to add a row in a grid I have this error in Csla in the SetProperty(it can also be in the GetProperty)

And I check the value and it is false and the property seems fine too

Unfortunately, I don't know precisely when the error occurred since it is in the code behind of Telerik and I cannot access it.
I know it might be a problem from Telerik but I wasn't sure where to start so sorry if I'm not at the right place And thank you for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions