diff options
author | Sadie Powell <sadie@witchery.services> | 2024-04-29 08:16:45 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-04-29 08:16:45 +0100 |
commit | 0c5bf51378bca2c671722940bea188c783c2897b (patch) | |
tree | 867f68182bd0c2de117e6aae8509ea8949ba5daa /modules/database/db_flatfile.cpp | |
parent | d41764bfd6b22417ac5ff4993c4f8961e20f58c6 (diff) |
Skip serializing data without a type in db_flatfile.
Diffstat (limited to 'modules/database/db_flatfile.cpp')
-rw-r--r-- | modules/database/db_flatfile.cpp | 2 |
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()) |