1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

fix NPE biting yannick due to broken rules

This commit is contained in:
Matthew Hodgson
2018-01-25 18:41:36 +01:00
parent f2d1222de7
commit 38915eb7fc

View File

@@ -211,6 +211,10 @@ function PushProcessor(client) {
};
const eventFulfillsEventMatchCondition = function(cond, ev) {
if (!cond.key) {
return false;
}
const val = valueForDottedKey(cond.key, ev);
if (!val || typeof val != 'string') {
return false;