mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 08:27:44 +01:00
Null check for progress reporting when reading log
This commit is contained in:
@@ -103,7 +103,7 @@ namespace Flowframes.Ui
|
|||||||
{
|
{
|
||||||
if (!progressPaused && AiProcess.processTime.IsRunning)
|
if (!progressPaused && AiProcess.processTime.IsRunning)
|
||||||
{
|
{
|
||||||
string lastLogLine = Logger.GetSessionLogLastLines(logFile, 1)?.Where(x => x.Contains("frame=")).LastOrDefault();
|
string lastLogLine = Logger.GetSessionLogLastLines(logFile, 1)?.Where(x => x != null && x.Contains("frame=")).LastOrDefault();
|
||||||
int num = lastLogLine == null ? 0 : lastLogLine.Split("frame=")[1].Split("fps=")[0].GetInt();
|
int num = lastLogLine == null ? 0 : lastLogLine.Split("frame=")[1].Split("fps=")[0].GetInt();
|
||||||
|
|
||||||
if(num > 0)
|
if(num > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user