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:
nathan 2018-10-25 21:36:00 +02:00
parent 088853ac69
commit c54d20eae6

View File

@ -186,7 +186,7 @@ class RmiObjectLocalHandler extends RmiObjectHandler {
// connections -- even if this "slows down" the speed/performance of what "local" connections offer.
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
//noinspection SynchronizeOnNonFinalField
synchronized (implToProxy) {