summaryrefslogtreecommitdiff
path: root/rb/src/IceRuby/Proxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rb/src/IceRuby/Proxy.cpp')
-rw-r--r--rb/src/IceRuby/Proxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rb/src/IceRuby/Proxy.cpp b/rb/src/IceRuby/Proxy.cpp
index a7207ae21b3..075144d8cde 100644
--- a/rb/src/IceRuby/Proxy.cpp
+++ b/rb/src/IceRuby/Proxy.cpp
@@ -951,7 +951,7 @@ IceRuby_ObjectPrx_ice_getCachedConnection(VALUE self)
{
Ice::ObjectPrx p = getProxy(self);
Ice::ConnectionPtr conn = p->ice_getCachedConnection();
- if(!NIL_P(conn))
+ if(!conn)
{
return createConnection(conn);
}