summaryrefslogtreecommitdiff
path: root/rb/src/IceRuby/Communicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rb/src/IceRuby/Communicator.cpp')
-rw-r--r--rb/src/IceRuby/Communicator.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/rb/src/IceRuby/Communicator.cpp b/rb/src/IceRuby/Communicator.cpp
index 7b0c56d04fb..a598ef26bb1 100644
--- a/rb/src/IceRuby/Communicator.cpp
+++ b/rb/src/IceRuby/Communicator.cpp
@@ -263,7 +263,10 @@ IceRuby_Communicator_stringToProxy(VALUE self, VALUE str)
Ice::CommunicatorPtr p = getCommunicator(self);
string s = getString(str);
Ice::ObjectPrx proxy = p->stringToProxy(s);
- return createProxy(proxy);
+ if(proxy)
+ {
+ return createProxy(proxy);
+ }
}
ICE_RUBY_CATCH
return Qnil;
@@ -301,7 +304,10 @@ IceRuby_Communicator_propertyToProxy(VALUE self, VALUE str)
Ice::CommunicatorPtr p = getCommunicator(self);
string s = getString(str);
Ice::ObjectPrx proxy = p->propertyToProxy(s);
- return createProxy(proxy);
+ if(proxy)
+ {
+ return createProxy(proxy);
+ }
}
ICE_RUBY_CATCH
return Qnil;