
Kaitlin Rupert wrote:
Heidi Eckhart wrote:
+ if (base) + inst = get_typed_instance(broker, + CLASSNAME(ref), + base, + NAMESPACE(ref)); CMSetProperty(inst, "InstanceID", inst_id, CMPI_chars); CMSetProperty(inst, "PropertyPolicy", &policy, CMPI_uint16);
Should there be an else statement here? If the if statement fails, then an instance isn't created. CMSetProperty() would be trying to get the value of a NULL inst, which would most likely fail.
Seems like a good idea to me. Just something simple that sets status as appropriate and bails is all that should be necessary there. -- -Jay