diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-10-27 14:22:45 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-10-27 14:22:45 -0700 |
commit | 73a0cb1d7a466758d910483f85359f94ca6f1b50 (patch) | |
tree | b39fd3f92f8b2a01e7589ef5f269d5b339f31225 /rb/src/IceRuby/Communicator.cpp | |
parent | bug 4335 - Python segfault (diff) | |
download | ice-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.cpp | 4 |
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); |