+ Start a Discussion
Manish Kumar 61Manish Kumar 61 

Hybrid SmartSync app crash - setObjectForKey: object cannot be nil (key: Customfield__c)' exception.

I am using the latest Cordova plugin for Salesforce Mobile and when I try to use Smartsync, my app crashes with

setObjectForKey: object cannot be nil (key: Customfield__c)' exception.

How can I fix this?

 
Best Answer chosen by Manish Kumar 61
Gaurav KheterpalGaurav Kheterpal
Here (https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/41) is the reference to this issue on the repo.

If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker

 

All Answers

Gaurav KheterpalGaurav Kheterpal
This was actually a known issue earlier and was fixed about 2 weeks back. Can you take the latest libSmartSync.a file from the repository (https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin). Even better, clone the repo again and build the plugin. That should fix it.

If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker

 
Gaurav KheterpalGaurav Kheterpal
Here (https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/41) is the reference to this issue on the repo.

If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker

 
This was selected as the best answer