Fixes an issues with C++ properties using std::string and being assigned nullptr values.
@@ -201,7 +201,7 @@ int CServiceDependency<T,I>::invokeCallback(std::function<void(const I*, Propert
hash_map_iterator_t iter = hashMapIterator_construct((hash_map_pt)props);
while(hashMapIterator_hasNext(&iter)) {
key = (const char*) hashMapIterator_nextKey(&iter);
- value = celix_properties_get(props, key, NULL);
+ value = celix_properties_get(props, key, ""); //note. C++ does not allow nullptr entries for std::string
//std::cout << "got property " << key << "=" << value << "\n";
properties[key] = value;
}
