Watch, Follow, &
Connect with Us
Public Report
Report From: C#Builder/ECO/Core    [ Add a report in this area ]  
Report #:  32987   Status: Closed
User code is not called for NULL value properties
Project:  C#Builder Build #:  10.0.2288.42451
Version:    10.0 Submitted By:   Dmitriy Nagirnyak
Report Type:  Basic functionality failure Date Reported:  8/22/2006 7:17:37 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   241826
Resolution: Fixed (Resolution Comments) Resolved in Build: : 11.0.2417.43151
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
The preoperties' getters and setters are never called if value of the property is NULL.
Steps to Reproduce:
1. Create some test ECO application.
2. Add some class and string property.
3. Mark the property to allow NULL value.
4. Set default value to NULL.
5. Mark property to has user code.
6. Put some test code in getter and setter methods (at least throw exception).
7. instantiate somewhere the class and save it.
8. Access or change the property's value.
No user code is executed.
Workarounds
+ Set default value to other than NULL
+ Update DB so such properties never have NULLs
Attachment
None
Comments

Holger Flick at 8/24/2006 3:10:48 PM -
get somebody to reproduce this....

Server Response from: ETNACODE01