Skip to content

Crash when Remote Config value is null #216

@angelix

Description

@angelix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions