summaryrefslogtreecommitdiff
path: root/rb/src/IceRuby/Communicator.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-10-27 14:22:45 -0700
committerMark Spruiell <mes@zeroc.com>2009-10-27 14:22:45 -0700
commit73a0cb1d7a466758d910483f85359f94ca6f1b50 (patch)
treeb39fd3f92f8b2a01e7589ef5f269d5b339f31225 /rb/src/IceRuby/Communicator.cpp
parentbug 4335 - Python segfault (diff)
downloadice-73a0cb1d7a466758d910483f85359f94ca6f1b50.tar.bz2
ice-73a0cb1d7a466758d910483f85359f94ca6f1b50.tar.xz
ice-73a0cb1d7a466758d910483f85359f94ca6f1b50.zip
minor ruby fix in proxyToProperty
Diffstat (limited to 'rb/src/IceRuby/Communicator.cpp')
-rw-r--r--rb/src/IceRuby/Communicator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rb/src/IceRuby/Communicator.cpp b/rb/src/IceRuby/Communicator.cpp
index 1af03d87c67..b5916bd4c67 100644
--- a/rb/src/IceRuby/Communicator.cpp
+++ b/rb/src/IceRuby/Communicator.cpp
@@ -319,6 +319,10 @@ IceRuby_Communicator_proxyToProperty(VALUE self, VALUE obj, VALUE str)
{
ICE_RUBY_TRY
{
+ if(!checkProxy(obj))
+ {
+ throw RubyException(rb_eTypeError, "argument must be a proxy");
+ }
Ice::CommunicatorPtr p = getCommunicator(self);
Ice::ObjectPrx o = getProxy(obj);
string s = getString(str);