From: Soeren Apel Date: Mon, 29 Aug 2016 16:10:09 +0000 (+0200) Subject: Fix crash when saving session with open files X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=f2040dcb783986fd478e910a13b6c9bcf8a0a4be;hp=6de38b17e7a9182b6557104dd3a902bb7784db95 Fix crash when saving session with open files --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 45d805a..77dc946 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -273,7 +273,8 @@ void MainWindow::save_ui_settings() dynamic_pointer_cast< devices::HardwareDevice > (session->device()); - if (device->hardware_device()->driver()->name() == "demo") + if (device && + device->hardware_device()->driver()->name() == "demo") continue; }