Crashes when init user with current user properties

When I use this code to init user with logged in user properties (I need it for future custom class subclassing) and then update this user, it crashes with logs:

2014-03-27 10:20:23.716 DatingService[4078:60b] successfully logged in for = 375251111111
2014-03-27 10:20:27.920 DatingService[4078:60b] -[__NSCFString setProperties:]: unrecognized selector sent to instance 0x175f8a60
2014-03-27 10:20:27.927 DatingService[4078:60b] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSCFString setProperties:]: unrecognized selector sent to instance 0x175f8a60’

*** First throw call stack:

My code is:
[[API_BaaSManager sharedInstance] loginUserWithUsername:self.textFieldUsername.text password:self.textfieldPassword.text sucessBlock:^(BackendlessUser *regUser) {
           
            BackendlessUser *userTest = [[BackendlessUser alloc] initWithProperties:[regUser getProperties]];
            [userTest setProperty:@"yearFrom" object:@1982];
            
            [backendless.userService update:userTest response:^(BackendlessUser *user2) {
                
                
            } error:^(Fault *fault2) {
                [[API_BaaSManager sharedInstance] logErrorWithStartTitle:@"udateUser" error:fault2];
            }];
            
            // hide register view
            [[Singleton sharedInstance] dismissViewController_animated:YES withCompletion:nil];
            
        } failBlock:^(NSError *error) {
            
        }];

Can you put together a project with all the sources and attach the zip file here? We would need it to reproduce the problem.

Thanks,
Mark

Actually you can use this code in AppDelegate file:

[ backendless initApp:@"XXXXXX-XXXXX-XXXXX" secret:@"YYYYYYY-YYYYYY-YYYYYY" version:@"v1"];
[ backendless.userService login:@"375251111111" password:@"1" response:^(BackendlessUser *userCame) {
        
        BackendlessUser *userTest = [ [BackendlessUser alloc] initWithProperties:[ userCame getProperties]];
        [ userTest setProperty:@"yearFrom" object:@1982];
        [ backendless.userService update:userTest response:^(BackendlessUser *user2) {
        } error:^(Fault *fault2) {
        }];
        
    } error:^(Fault *errorBackEndless) {}];

It crashes at the line backendless.userService update:userTest with crash log I attached before. But if you comment line (userTest setProperty:@“yearFrom” object:@1982) , it will crash without logs in debug console.

But if you anyway need the project, pls just let me know, I will send it to you via email.

Thanks, Pavel. Some code got hidden by the support app, but now I can see it. I will also hide your app id and secret key as it is not a good idea to publish them openly. We will be looking into it.

ok, I’m looking forward to hearing from you

Hi Pavel,

Thank you for reporting this bug. It has been fixed. Please download the build 1.12 from our site.

Regards,
Mark

Thank you