diff --git a/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiRegistry.java b/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiRegistry.java index 8fa23a538..d6443cfcb 100644 --- a/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiRegistry.java +++ b/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiRegistry.java @@ -194,7 +194,7 @@ public class RmiRegistry { public T getLocalObject( String name, Class type ) { local.lock.readLock().lock(); try { - return type.cast(local.byName.get(name)); + return type.cast(local.byName.get(name).object); } finally { local.lock.readLock().unlock(); }