1
0
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:
Paul Licameli 2019-01-28 12:50:20 -05:00
parent 0941eaa0d5
commit 38849cc902

View File

@ -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 ); }