# HG changeset patch # User Kim Alvefur # Date 1395610527 -3600 # Node ID 8be609f5610ee2861ffded800f25a13abdaa5379 # Parent 5724008bbdb19dc95018b3b23ab7a815b4fcf806 mod_mam, mod_mam_muc: Check that storagemanager didn't return an instance of the null storage method (Thanks Jonathan) diff -r 5724008bbdb1 -r 8be609f5610e mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Thu Mar 20 15:55:37 2014 +0100 +++ b/mod_mam/mod_mam.lua Sun Mar 23 22:35:27 2014 +0100 @@ -34,7 +34,7 @@ local archive_store = "archive2"; local archive = module:open_store(archive_store, "archive"); -if not archive then +if not archive or archive.name == "null" then module:log("error", "Could not open archive storage"); return elseif not archive.find then diff -r 5724008bbdb1 -r 8be609f5610e mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Thu Mar 20 15:55:37 2014 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Sun Mar 23 22:35:27 2014 +0100 @@ -32,7 +32,7 @@ local archive_store = "archive2"; local archive = module:open_store(archive_store, "archive"); -if not archive then +if not archive or archive.name == "null" then module:log("error", "Could not open archive storage"); return elseif not archive.find then