When sending the batch request if the server returns an error for one or more batch requests the SDK will crash with the error"
type 'Null' is not a subtype of type 'int'
Steps to reproduce
create ParseObject planObject
set objectId to any value so the server will return 101 not found error
create ParseObject dietPlansObject
set the planObject object as a child object for dietPlansObject object
call save() on the container object dietPlansObject
final planObject = ParseObject('Plans')
..objectId = "000000" // so the server will return 101 not found error
..set('PlanName', 'plan 1');
final dietPlansObject = ParseObject("Diet_Plans");
dietPlansObject.set('Plan1', planObject);
await dietPlansObject.save();
Actual Outcome
Error type 'Null' is not a subtype of type 'int'
Expected Outcome
The container object and its child object to be saved
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
New Issue Checklist
Issue Description
When sending the batch request if the server returns an error for one or more batch requests the SDK will crash with the error"
type 'Null' is not a subtype of type 'int'
Steps to reproduce
planObject
objectId
to any value so the server will return 101 not found errordietPlansObject
planObject
object as a child object fordietPlansObject
objectsave()
on the container objectdietPlansObject
Actual Outcome
Error type 'Null' is not a subtype of type 'int'
Expected Outcome
The container object and its child object to be saved
Environment
Parse Flutter SDK
4.0.0
any
Server
any
Logs