We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfcb72b commit 219200fCopy full SHA for 219200f
android-sdk/src/main/java/com/optimizely/ab/android/sdk/OptimizelyClient.java
@@ -794,7 +794,7 @@ public OptimizelyConfig getOptimizelyConfig() {
794
@Nullable
795
public OptimizelyUserContext createUserContext(@NonNull String userId,
796
@NonNull Map<String, Object> attributes) {
797
- if (isValid()) {
+ if (optimizely != null) {
798
return optimizely.createUserContext(userId, attributes);
799
} else {
800
logger.warn("Optimizely is not initialized, could not create a user context");
0 commit comments