parse-community / Parse-SDK-Android

The Android SDK for Parse Platform
https://parseplatform.org/
Other
1.88k stars 739 forks source link

SafeParseDelegate's name param being ignored on `setValue` function #1200

Open augustocarmo opened 9 months ago

augustocarmo commented 9 months ago

New Issue Checklist

Issue Description

When a variable used the safeAttribute(String) function, the setValue (from the SafeParseDelegate) was not working properly when its name was different from the name param from the delegate because the name param was being ignored.

Steps to reproduce

Have a model with a variable the uses the SafeParseDelegate. Example:

var image: ParseFile? by safeAttribute(name = "profile_image")

update it and then try to read its updated value

Actual Outcome

The new value that was just set will not be returned

Expected Outcome

The new value that was just set will be returned

Environment

https://github.com/parse-community/Parse-SDK-Android/releases/tag/4.2.1

Parse Android SDK

Server

Database

parse-github-assistant[bot] commented 9 months ago

Thanks for opening this issue!