diff --git a/src/main/java/io/split/android/client/service/executor/SplitTaskFactoryImpl.java b/src/main/java/io/split/android/client/service/executor/SplitTaskFactoryImpl.java index d1b5a5382..1341f4d5f 100644 --- a/src/main/java/io/split/android/client/service/executor/SplitTaskFactoryImpl.java +++ b/src/main/java/io/split/android/client/service/executor/SplitTaskFactoryImpl.java @@ -204,7 +204,8 @@ private TelemetryTaskFactory initializeTelemetryTaskFactory(@NonNull SplitClient SplitFilter bySetFilter = filters.get(SplitFilter.Type.BY_SET); if (bySetFilter != null) { flagSetCount = bySetFilter.getValues().size(); - invalidFlagSetCount = splitClientConfig.syncConfig().getInvalidValueCount(); + invalidFlagSetCount = (splitClientConfig.syncConfig() != null) ? + splitClientConfig.syncConfig().getInvalidValueCount() : 0; } }