summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-04-29 08:16:45 +0100
committerSadie Powell <sadie@witchery.services>2024-04-29 08:16:45 +0100
commit0c5bf51378bca2c671722940bea188c783c2897b (patch)
tree867f68182bd0c2de117e6aae8509ea8949ba5daa /modules
parentd41764bfd6b22417ac5ff4993c4f8961e20f58c6 (diff)
Skip serializing data without a type in db_flatfile.
Diffstat (limited to 'modules')
-rw-r--r--modules/database/db_flatfile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/database/db_flatfile.cpp b/modules/database/db_flatfile.cpp
index 37ee3f2ef..5ccf7772f 100644
--- a/modules/database/db_flatfile.cpp
+++ b/modules/database/db_flatfile.cpp
@@ -324,6 +324,8 @@ class DBFlatFile : public Module, public Pipe
{
Serializable *base = *it;
Serialize::Type *s_type = base->GetSerializableType();
+ if (!s_type)
+ continue;
data.fs = databases[s_type->GetOwner()];
if (!data.fs || !data.fs->is_open())