Fixed null pointer

This commit is contained in:
Robinson 2023-10-05 13:17:28 +02:00
parent 48325ee846
commit 8f9ee52b36
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 2 additions and 4 deletions

View File

@ -170,12 +170,10 @@ internal class AeronDriverInternal(endPoint: EndPoint<*>?, config: Configuration
} else {
error.cleanStackTrace()
// send this out to the listener-manager so we can be notified of global errors
notifyError(AeronDriverException("Aeron Driver [$driverId]: Unexpected error!", error.cause!!))
notifyError(AeronDriverException("Aeron Driver [$driverId]: Unexpected error!", error.cause))
}
}
if (error is io.aeron.exceptions.AeronException) {
else if (error is io.aeron.exceptions.AeronException) {
if (error.message?.startsWith("ERROR - unexpected close of heartbeat timestamp counter:") == true) {
restartNetwork = true