mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-03 06:03:13 +02:00
Null check in AudacityApp:OnExceptionInMainLoop
This commit is contained in:
parent
0941eaa0d5
commit
38849cc902
@ -1093,12 +1093,14 @@ bool AudacityApp::OnExceptionInMainLoop()
|
||||
|
||||
// Restore the state of the project to what it was before the
|
||||
// failed operation
|
||||
pProject->RollbackState();
|
||||
if (pProject) {
|
||||
pProject->RollbackState();
|
||||
|
||||
// Forget pending changes in the TrackList
|
||||
pProject->GetTracks()->ClearPendingTracks();
|
||||
// Forget pending changes in the TrackList
|
||||
pProject->GetTracks()->ClearPendingTracks();
|
||||
|
||||
pProject->RedrawProject();
|
||||
pProject->RedrawProject();
|
||||
}
|
||||
|
||||
// Give the user an alert
|
||||
try { std::rethrow_exception( pException ); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user