diff options
Diffstat (limited to 'src/CommonAPI')
-rw-r--r-- | src/CommonAPI/Factory.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CommonAPI/Factory.hpp b/src/CommonAPI/Factory.hpp index 7468ded..2f481f5 100644 --- a/src/CommonAPI/Factory.hpp +++ b/src/CommonAPI/Factory.hpp @@ -30,7 +30,7 @@ Factory::buildProxy(const std::string& serviceAddress) { std::string serviceName; std::string participantId; if(!splitValidAddress(serviceAddress, domain, serviceName, participantId)) { - return false; + return std::shared_ptr<_ProxyClass<_AttributeExtensions...> >(); } return buildProxy<_ProxyClass, _AttributeExtensions...>(participantId, serviceName, domain); @@ -54,7 +54,7 @@ Factory::buildProxyWithDefaultAttributeExtension(const std::string& serviceAddre std::string serviceName; std::string participantId; if(!splitValidAddress(serviceAddress, domain, serviceName, participantId)) { - return false; + return std::shared_ptr<typename DefaultAttributeProxyFactoryHelper<_ProxyClass, _AttributeExtension>::class_t>(); } return buildProxyWithDefaultAttributeExtension<_ProxyClass, _AttributeExtension>(participantId, serviceName, domain); |