Fix crash when there is an empty logging category
BUG: 475248
This commit is contained in:
@@ -117,7 +117,7 @@ public:
|
|||||||
file.write(buf.constData(), buf.size());
|
file.write(buf.constData(), buf.size());
|
||||||
file.flush();
|
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);
|
oldHandler(type, context, message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user