From f2040dcb783986fd478e910a13b6c9bcf8a0a4be Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Mon, 29 Aug 2016 18:10:09 +0200 Subject: [PATCH] Fix crash when saving session with open files --- pv/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 45d805a8..77dc9462 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; } -- 2.30.2