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.