Hey Team, a customer is facing an issue with a nul...
# sdk-kotlin
f
Hey Team, a customer is facing an issue with a null featureResult response, please can you TAL? He wrote: Hi GrowthBook team! I have been working on the GrowthBook integration with our Android app, and I had some issues when using the Kotlin SDK. I get the trackingCallback called correctly with the experimentResult, but the featureResult does not contain that information. You can find my integration here: https://gist.github.com/albertoastiazaran-qz/2925e1c9d4383ae31d3b9db03aa51d64 And the logs printed out here: https://gist.github.com/albertoastiazaran-qz/2a350c3454b40cf3b9499924f90fde30 You can see that the trackingCallback gets a valid experimentResult with value=true, but the featureResult has value=null and source = unknownFeature. Looking at GrowthBook's codebase, I don't see anything glaringly wrong. We actually return experimentResult pretty soon after evaluating the experiment, so there's not many places where could have thrown an exception: GBFeatureEvaluator.kt. I have a simple boolean feature flag and an experiment with a few filters. CC @freezing-postman-69602 @ancient-car-96302
Update the customer found that this error was caused by a NullPointerException thrown in their own code. The problem was that
experiment.name
and
experimentResult.name
were null, which I don't think is expected as they have an experiment tied to the feature and they do not have a forced rule configured. Their experiment has two variants with actual names ("Control" and "Variation 1"), I would expect to receive these in the client rather than getting
null
. How does the customer get the
experiment.name
and `experimentResult.name`values in the client?
a
Could you ask the customer whether he uses Plain Text or Ciphered?
If the customer uses Ciphered. Pay attention to "Hide experiment and variation names" flag.
image.png
If it is turned on nulls will be
f
Ahh good spot, let me ask them this
a
Ask them to turn off
f
Perfect, thank you 🙏