@@ -1095,8 +1095,6 @@ private Variation getVariation(@Nonnull ProjectConfig projectConfig,
1095
1095
.withExperimentKey (experiment .getKey ())
1096
1096
.withVariation (variation )
1097
1097
.withType (notificationType )
1098
- .withExperimentId (experiment .getId ())
1099
- .withVariationId (variation .getId ())
1100
1098
.build ();
1101
1099
1102
1100
notificationCenter .send (decisionNotification );
@@ -1305,6 +1303,8 @@ private OptimizelyDecision createOptimizelyDecision(
1305
1303
ProjectConfig projectConfig
1306
1304
) {
1307
1305
String userId = user .getUserId ();
1306
+ String experimentId = null ;
1307
+ String variationId = null ;
1308
1308
1309
1309
Boolean flagEnabled = false ;
1310
1310
if (flagDecision .variation != null ) {
@@ -1338,8 +1338,8 @@ private OptimizelyDecision createOptimizelyDecision(
1338
1338
1339
1339
1340
1340
Boolean decisionEventDispatched = false ;
1341
- String experimentId = flagDecision .experiment != null ? flagDecision .experiment .getId () : null ;
1342
- String variationId = flagDecision .variation != null ? flagDecision .variation .getId () : null ;
1341
+ experimentId = flagDecision .experiment != null ? flagDecision .experiment .getId () : null ;
1342
+ variationId = flagDecision .variation != null ? flagDecision .variation .getId () : null ;
1343
1343
1344
1344
Map <String , Object > attributes = user .getAttributes ();
1345
1345
Map <String , ?> copiedAttributes = new HashMap <>(attributes );
0 commit comments