growthbook / growthbook-flutter

GrowthBook Flutter SDK
MIT License
6 stars 0 forks source link

Error when trying to get value out of feature flag used in experiment #21

Closed cottonman132 closed 1 month ago

cottonman132 commented 2 months ago

Trying to get the value out of a feature flag that has a running experiment causes the following error:

Null check operator used on a null value

When the exception was thrown, this was the stack: 
#0      ExperimentEvaluator.evaluateExperiment (package:growthbook_sdk_flutter/src/Evaluator/experiment_evaluator.dart:88:59)
#1      FeatureEvaluator.evaluateFeature (package:growthbook_sdk_flutter/src/Evaluator/feature_evaluator.dart:214:18)
#2      GrowthBookSDK.feature (package:growthbook_sdk_flutter/src/growth_book_sdk.dart:191:7)

I assume it is caused by the fact that experiments using feature flags have no fallback attribute

vazarkevych commented 2 months ago

Hi, @cottonman132. Thank you for providing detailed information. We will check that and get back to you.

stwonary commented 2 months ago

we’re having the same issue. any updates on this?

vazarkevych commented 1 month ago

Hi, @stwonary. We now checking this issue. I will write you asap.

vazarkevych commented 1 month ago

Hi, @stwonary. Thank you for providing us with detailed information about the issue. We have also reproduced it and implemented a solution, which will be available in the next release.

vazarkevych commented 1 month ago

Hi, @stwonary. Here is a link to pull request with fix.

stwonary commented 1 month ago

hi @vazarkevych

i can confirm its working now. thank you.