Fixed internal issue where RMI object was null (since it didn't exist) and we would try to add it to internal maps anyways.
This commit is contained in:
parent
088853ac69
commit
c54d20eae6
|
@ -186,7 +186,7 @@ class RmiObjectLocalHandler extends RmiObjectHandler {
|
||||||
// connections -- even if this "slows down" the speed/performance of what "local" connections offer.
|
// connections -- even if this "slows down" the speed/performance of what "local" connections offer.
|
||||||
proxyObject = connection.getProxyObject(registration.rmiId, interfaceClass);
|
proxyObject = connection.getProxyObject(registration.rmiId, interfaceClass);
|
||||||
|
|
||||||
if (proxyObject != null) {
|
if (proxyObject != null && registration.remoteObject != null) {
|
||||||
// have to save A and B so we can correctly switch as necessary
|
// have to save A and B so we can correctly switch as necessary
|
||||||
//noinspection SynchronizeOnNonFinalField
|
//noinspection SynchronizeOnNonFinalField
|
||||||
synchronized (implToProxy) {
|
synchronized (implToProxy) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user