We are moving to Discord!

Join us on the Countly Community Discord Server! Engage in discussions, share your feature ideas, and learn from fellow Countly users to build exceptional apps and experiences.

Countly.sharedInstance().userProfile() throws an exception

I updated the Countly library for Android to version "22.06.0". The function "Countly.userData.setUserData()" is no longer supported, therefore I updated "Countly.sharedInstance().userProfile().setProperties()" instead, however it still throws an exception for a null value.

0

Comments

1 comment
  • Official comment

    Hello,
    You probably used that call before initializing the SDK. If that would be the case then "Countly.sharedInstance().userProfile()" would return "null".

    Could you share your init code?

    Comment actions Permalink

Please sign in to leave a comment.