countly-sdk-ios icon indicating copy to clipboard operation
countly-sdk-ios copied to clipboard

Crash when Remote Config value is null

Open angelix opened this issue 1 year ago • 1 comments

If an object value is set to null, the app crashes.

Expected Behavior

Handle null values

Current Behavior

App crashes with the following error

2023-01-25 12:24:37.986568+0100 app[23264:5150263] [User Defaults] Attempt to set a non-property-list object {
    "review" = 6;
    banners =     (
                {
            data = 1;
            networks = "<null>";
            title = "Thank you for your feedback";
        }
    );
    "assets" =     (
                {
            id = xxx;
            weight = 100;
        }
    );
} as an NSUserDefaults/CFPreferences value for key kCountlyRemoteConfigPersistencyKey

angelix avatar Jan 25 '23 12:01 angelix

Thank you for letting us know. We will add a fix for this

ArtursKadikis avatar Feb 14 '23 18:02 ArtursKadikis