Skip to content

Commit 377a9d4

Browse files
author
Josh Deffibaugh
committed
Instantiate the default AndroidOptimizely instance and make getOptimizely @nonnull
1 parent 8d7c381 commit 377a9d4

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
@@ -32,7 +32,7 @@
3232
* Handles loading the Optimizely data file
3333
*/
3434
public class OptimizelyManager {
35-
@Nullable private static AndroidOptimizely androidOptimizely;
35+
@NonNull private static AndroidOptimizely androidOptimizely = new AndroidOptimizely(null);
3636
@NonNull private final String projectId;
3737
@NonNull private final Long eventHandlerDispatchInterval;
3838
@NonNull private final TimeUnit eventHandlerDispatchIntervalTimeUnit;
@@ -107,6 +107,7 @@ public void stop(@NonNull Context context) {
107107
this.optimizelyStartListener = null;
108108
}
109109

110+
@NonNull
110111
public AndroidOptimizely getOptimizely() {
111112
return androidOptimizely;
112113
}

0 commit comments

Comments
 (0)