mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: missing guard for empty list (see b2bc1d6546)
This commit is contained in:
committed by
Andrew Heather
parent
391afe7854
commit
88cf93c4e7
@ -655,7 +655,11 @@ bool Foam::Time::writeObject
|
||||
// Does the writeTime trigger purging?
|
||||
if (writeTime_ && purgeWrite_)
|
||||
{
|
||||
if (previousWriteTimes_.top() != timeName())
|
||||
if
|
||||
(
|
||||
previousWriteTimes_.empty()
|
||||
|| previousWriteTimes_.top() != timeName()
|
||||
)
|
||||
{
|
||||
previousWriteTimes_.push(timeName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user