Fix theoretical NPE
events can't be null based on current usage, but the function could NPE if used elsewhere.pull/5156/head
parent
d791ea8cb0
commit
d548586e80
|
@ -28,6 +28,7 @@ private final class History(
|
|||
}
|
||||
|
||||
def versionDebugString: String = {
|
||||
waitForLoadedEvents
|
||||
s"${events.lastOption.fold(-1)(_.version.value)}:${
|
||||
events.headOption.fold(-1)(_.version.value)
|
||||
}"
|
||||
|
|
Loading…
Reference in New Issue