Hi all...
We are using CSLA 2.1 Beta.
Our problem is that we have a boolean property in a business object that doesn't need to have any validation rule. It's only possible values are true or false and the value is false by default so no validation rule is required.
When the PropertyChanged Method is called for this property we receive a System.NullReferenceException exception that is caused by the following line of code:
Dim list As List(Of IRuleMethod) = rules.GetRulesForProperty(propertyName, False).GetList(True)
in the ChechRules procedure of the ValidationRules Class.
That line of code shouldn't be processed because there is no rules for that property.
The thing is that in RulesToCheck property of ValidationRules class the variable instancerules is not nothing when it should.
So the question is?
Do we need to add validation rules for all the properties of our Csla derived objects?
or
Is this a bug?
Thanks in advance.
Emilio.
Thanks guys...
Everything is working now.
Emilio.
Copyright (c) Marimer LLC