diff --git a/Runtime/Model/Breadcrumbs/Storage/BacktraceStorageLogManager.cs b/Runtime/Model/Breadcrumbs/Storage/BacktraceStorageLogManager.cs index be6462fd..5df420c6 100644 --- a/Runtime/Model/Breadcrumbs/Storage/BacktraceStorageLogManager.cs +++ b/Runtime/Model/Breadcrumbs/Storage/BacktraceStorageLogManager.cs @@ -290,6 +290,11 @@ private long GetNextStartPosition() int nextLineBytes = NewRow.Length; while (numberOfFreeBytes < expectedFreedBytes) { + if (_logSize.Count == 0) + { + return numberOfFreeBytes; + } + numberOfFreeBytes += (_logSize.Dequeue() + nextLineBytes); }