Fix crash when there is an empty logging category

BUG: 475248
This commit is contained in:
Tobias Fella
2023-10-27 22:01:51 +02:00
parent 5cce9e7205
commit 2c6932b4cb

View File

@@ -117,7 +117,7 @@ public:
file.write(buf.constData(), buf.size());
file.flush();
if (oldHandler && (strcmp(context.category, "quotient.e2ee") != 0 || e2eeDebugEnabled)) {
if (oldHandler && (!context.category || (strcmp(context.category, "quotient.e2ee") != 0 || e2eeDebugEnabled))) {
oldHandler(type, context, message);
}
}