Added try/catch around creating remote objects

This commit is contained in:
nathan 2017-10-14 13:57:10 +02:00
parent 1de96ae769
commit e8b47df493

View File

@ -1089,8 +1089,12 @@ class ConnectionImpl extends ChannelInboundHandlerAdapter implements ICryptoConn
callback = rmiRegistrationCallbacks.remove(remoteRegistration.rmiID);
}
//noinspection unchecked
callback.created(remoteObject);
try {
//noinspection unchecked
callback.created(remoteObject);
} catch (Exception e) {
logger.error("Error getting remote object " + remoteObject.getClass() + ", ID: " + rmiID, e);
}
// tell the client that we are finished with all RMI callbacks
rmiCallbacksNotifyIfEmpty();