diff options
Diffstat (limited to 'cpp/src/Ice/ProxyFactory.cpp')
-rw-r--r-- | cpp/src/Ice/ProxyFactory.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cpp/src/Ice/ProxyFactory.cpp b/cpp/src/Ice/ProxyFactory.cpp index 947296db7c5..592545ddad7 100644 --- a/cpp/src/Ice/ProxyFactory.cpp +++ b/cpp/src/Ice/ProxyFactory.cpp @@ -40,14 +40,17 @@ IceInternal::ProxyFactory::streamToProxy(BasicStream* s) { string identity; s->read(identity); - if (identity.length()) + + if (identity.empty()) { - ReferencePtr reference = new Reference(identity, s); - return referenceToProxy(reference); + cout << "read empty identity" << endl; + return 0; } else { - return 0; + cout << "read identity " << identity << endl; + ReferencePtr reference = new Reference(identity, s); + return referenceToProxy(reference); } } @@ -64,11 +67,13 @@ IceInternal::ProxyFactory::proxyToStream(const ObjectPrx& proxy, BasicStream* s) { if (proxy) { + cout << "wrote identity " << proxy->__reference()->identity << endl; s->write(proxy->__reference()->identity); proxy->__reference()->streamWrite(s); } else { + cout << "wrote empty identity" << endl; s->write(""); } } |