Adding a property named state
to a PFObject causes a crash
#26
Labels
type:bug
Impaired feature or lacking behavior that is likely assumed
As I originally posted here in the Google Forum, if you have a
PFObject
subclass, where one of the property is namedstate
, Parse will cause a crash, related toPFObjectState
trying to set an object that is not aPFObjectState
instance.It was introduced, I guess, in version 1.7 or around that - as it wasn't crashing for me. To fix it temporarily, I needed to replace my property with
geographicState
instead ofstate
.To reproduce it, is very simple. One just needs to create a subclass of
PFObject
, add a property namedstate
(in my case, it was a string), assign it and save.I hope it's enough information. If not, I can try to reproduce and attach a stack strike.
If this behaviour is expected, that's ok - but it should be documented (maybe I didn't find this in the docs?). But it seems that I'm not the only one, according to the replies in the Google Forum.
The text was updated successfully, but these errors were encountered: