As the title already explains I have null reference exception when I try to set the ACL property of my new parse object.
The code is this:
ParseObject storeAssets = new ParseObject("StoreAssets");
storeAssets["myKey"]="MyValue";
ParseACL storeAssetsPermissions = new ParseACL(ParseUser.CurrentUser)
{
PublicReadAccess = true,
PublicWriteAccess = false
};
storeAssets.ACL = storeAssetsPermissions;
the code looks like in the examples of the documentation but it's not working... I believe it stopped working with new version of Parse Unity SDK, because the app that I have on the store uses the same code and works correctly.
The code gives me Nullreference exception on the ACL setter.
I am using Parse Unity SDK version 1.6.2
Is anybody else experiencing the same problem?
Ok
This issue is solved. It was a tricky call, because it was due to the Asset store publishing system that corrupted the Parse Package, so you would think you got the latest version of Parse, but it was not the case.
https://github.com/ParsePlatform/Parse-SDK-dotNET/issues/155