LiveQuery stops working for client and class when subscribed with null condition #7609
Closed
4 tasks done
Labels
bounty:$10
Bounty applies for fixing this issue (Parse Bounty Program)
type:bug
Impaired feature or lacking behavior that is likely assumed
New Issue Checklist
Issue Description
Originally reported by @vahidalizad:
There is bug in
/src/LiveQuery/QueryTools.js:216
in the master branch with throws an errorcan't find __type of null
because compareTo isnull
.Only the null subscribed client does not get any events at all anymore for that class but the rest of the clients have no issues.
in my tests I realized
q.notEqualTo('***', null);
also have this problem, and clients with these conditions can't get events and the real issue apart from that is they don't get notified that the problem iscompareTo
parameter.I think the
q.notEqualTo('***', null);
should work nicely and result in objects that are not null on that parameter but the error ofCannot read property '__type' of null
is throwing on this condition as well.Steps to reproduce
Actual Outcome
Expected Outcome
Environment
Server
4.10.3
Client
JS
unknown
Logs
n/a
The text was updated successfully, but these errors were encountered: