Hi Riya,
The error is thrown because you try to change the value TotalPrice of an empty Object. The retrieval of the Cart is not getting a single Cart object. Or you pass an empty Cart as the Parameter of your Microflow.
If you set a breakpoint on the change, you can validate that there is no object (null) for the change action.
Go Make It