Hi, I found the reason it is returning a null value, it is because the property was not set, so setting[i].isSet()==false and the setting[i] value has no meaning, since it has no old values, cause it was never set before. This case is not a bug though, cause it's described on sdo cpp specs:
6.3.2. Old Values []...Setting.isSet() will be false for each "old value" that was not "set" when logging was begun on the ChangeSummary. []...If the setting.isSet() of the old value is false, the old value does not have meaning. I will close the JIRA-1772 though Thanks, Adriano Crestani On 9/19/07, Adriano Crestani <[EMAIL PROTECTED]> wrote: > > the code I got this problem is too complex, I will create a testcase and > create a jira till tomorrow ; ) > > Adriano Crestani > > On 9/19/07, Brady Johnson <[EMAIL PROTECTED]> wrote: > > > > > > I agree that this is a bug. Can you write a JIRA please. > > > > Regards > > > > -------------------- > > Brady Johnson > > Lead Software Developer - HydraSCA > > Rogue Wave Software - [EMAIL PROTECTED] > > > > > > -----Original Message----- > > From: Michael Yoder [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 19, 2007 9:20 AM > > To: [email protected] > > Subject: RE: [SDO C++] Setting::getDataObjectValue question > > > > > > I would think this is a bug. At least its worth a JIRA with the entire > > test case attached. > > > > Michael > > Rogue Wave Software, Inc. - [EMAIL PROTECTED] Software Developer - > > HydraSDO > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On > > Behalf Of Adriano Crestani > > Sent: Wednesday, September 19, 2007 4:59 AM > > To: [email protected] > > Subject: Fwd: [SDO C++] Setting::getDataObjectValue question > > > > ---------- Forwarded message ---------- > > From: Adriano Crestani <[EMAIL PROTECTED]> > > Date: Sep 18, 2007 4:20 PM > > Subject: [SDO C++] Setting::getDataObjectValue question > > To: [EMAIL PROTECTED] > > > > I have the following code: > > > > const commonj::sdo::SettingList& settings = > > summary->getOldValues(dataObject); > > > > for (int i = 0 ; i < settings.size() ; i++) { > > > > if (!settings[i].getProperty().getType().isDataType()) { > > > > commonj::sdo::DataObjectPtr value = > > setting[i].getDataObjectValue(); > > > > } > > > > } > > > > > > Shold the "value" variable always be a valid pointer? Cause it's > > returning NULL for me. > > > > Adriano Crestani > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
