Skip to content

Commit

Permalink
more storage checks downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Nov 21, 2024
1 parent 4f849a9 commit 7d389d7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/common/PatchDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}
Expand Down

0 comments on commit 7d389d7

Please sign in to comment.