kkaempf/cmpi-bindings — Issue #3: cmpi2pywbem_inst with NULL properties
Author: mibanescu
Created: 2012-01-17 22:28:51+00:00
State: open

If the value of a property is not set, the following code inside cmpi2pywbem_inst fails:

data, name = cmpiinst.get_property_at(i)
_type, is_array = _cmpi_type2string(data.type)

This is because data is None, so it has no data.type

I think data_data is at fault again, right now it does:

else if (dp->state & CMPI_nullValue) {
result = Target_Null;
Target_INCREF(result);
}

when it should really return dp.