Digits.getInstance()
giving NullPointerException
java.lang.NullPointerException: Attempt to invoke virtual method 'com.digits.sdk.android.DigitsClient com.digits.sdk.android.Digits.getDigitsClient()' on a null object reference
I implemented Digits like -
Fabric.with(this, new TwitterCore(authConfig), new Digits());
mAuthCallback = new AuthCallback() {
@Override
public void success(DigitsSession session, String phoneNumber) {
// Do something with the session
}
@Override
public void failure(DigitsException exception) {
// Do something on failure
}
};
I just made it work. When you are using multiple SDKs you have to club them into a single statement.