From 7d389d73df0bce530c9ae460d23fa16c997823e3 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Thu, 21 Nov 2024 16:01:09 -0500 Subject: [PATCH] more storage checks downstream --- src/common/PatchDB.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/common/PatchDB.cpp b/src/common/PatchDB.cpp index 20e3a262531..e669b2c97d1 100644 --- a/src/common/PatchDB.cpp +++ b/src/common/PatchDB.cpp @@ -940,7 +940,10 @@ CREATE TABLE IF NOT EXISTS Favorites ( } catch (const SQL::Exception &e) { - storage->reportError(e.what(), "PatchDB - FXP Features"); + if (storage) + { + storage->reportError(e.what(), "PatchDB - FXP Features"); + } return; } @@ -956,7 +959,10 @@ CREATE TABLE IF NOT EXISTS Favorites ( } catch (const SQL::Exception &e) { - storage->reportError(e.what(), "PatchDB - FXP Features"); + if (storage) + { + storage->reportError(e.what(), "PatchDB - FXP Features"); + } return; } }