fixed crash when interf was not created

This commit is contained in:
Evan Tschannen 2020-03-05 19:09:08 -08:00
parent 39050308ff
commit 1076abdee5
1 changed files with 6 additions and 1 deletions

View File

@ -285,7 +285,12 @@ const LogMessageVersion& ILogSystem::ServerPeekCursor::version() { return messag
Version ILogSystem::ServerPeekCursor::getMinKnownCommittedVersion() { return results.minKnownCommittedVersion; }
Optional<UID> ILogSystem::ServerPeekCursor::getPrimaryPeekLocation() { return interf->get().id(); }
Optional<UID> ILogSystem::ServerPeekCursor::getPrimaryPeekLocation() {
if(interf) {
return interf->get().id();
}
return Optional<UID>();
}
Version ILogSystem::ServerPeekCursor::popped() { return poppedVersion; }