From fac78038809956952124e8b88d1c166b45172da7 Mon Sep 17 00:00:00 2001 From: Guy Scharf Date: Wed, 4 Nov 2020 10:23:14 -0700 Subject: [PATCH] Improve error message when null pointer found in journal file --- oscar/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oscar/mainwindow.cpp b/oscar/mainwindow.cpp index 799d5f86..95cfdf0e 100644 --- a/oscar/mainwindow.cpp +++ b/oscar/mainwindow.cpp @@ -1197,7 +1197,9 @@ void MainWindow::updateFavourites() if (journal) { if (journal->size() > 0) { Session *sess = journal->firstSession(MT_JOURNAL); - if (sess) { + if (!sess) { + qWarning() << "null session for MT_JOURNAL first session"; + } else { QString tmp; bool filtered = !bookmarkFilter.isEmpty(); bool found = !filtered;