Open

Description
suppose one subscribed for an ParseObject with objectID = X then in the same time on executing the following line, the subscriber change the object in another thraed and call saveInBackground, it seem in such situation race condition can be occurred ?
private <T extends ParseObject> void handleObjectEvent(Subscription.Event event, JSONObject jsonObject) throws JSONException {
final int requestId = jsonObject.getInt("requestId");
final Subscription<T> subscription = subscriptionForRequestId(requestId);
if (subscription != null) {
--->. **T object = ParseObject.fromJSON(jsonObject.getJSONObject("object"), subscription.getQueryState().className(), ParseDecoder.get(), subscription.getQueryState().selectedKeys());**
}
}
Metadata
Metadata
Assignees
Labels
No labels