Skip to content

Commit e5789ec

Browse files
fix builder error that passe in possible null projectId (#226)
1 parent 377af54 commit e5789ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android-sdk/src/main/java/com/optimizely/ab/android/sdk/OptimizelyManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,8 @@ public OptimizelyManager build(Context context) {
767767
}
768768

769769
if (userProfileService == null) {
770-
userProfileService = DefaultUserProfileService.newInstance(projectId, context);
770+
DatafileConfig config = new DatafileConfig(projectId, sdkKey);
771+
userProfileService = DefaultUserProfileService.newInstance(config.getKey(), context);
771772
}
772773

773774
if (eventHandler == null) {

0 commit comments

Comments
 (0)