@@ -56,7 +56,6 @@ public bool DecisionBatchInProgress
56
56
{
57
57
SaveToUserProfileService ( ) ;
58
58
}
59
-
60
59
_decisionBatchInProgress = value ;
61
60
}
62
61
}
@@ -169,13 +168,6 @@ OptimizelyDecideOption[] options
169
168
UserProfileUtil . IsValidUserProfileMap ( userProfileMap ) )
170
169
{
171
170
_userProfile = UserProfileUtil . ConvertMapToUserProfile ( userProfileMap ) ;
172
- decisionVariationResult =
173
- GetStoredVariation ( experiment , _userProfile , config ) ;
174
- reasons += decisionVariationResult . DecisionReasons ;
175
- if ( decisionVariationResult . ResultObject != null )
176
- {
177
- return decisionVariationResult . SetReasons ( reasons ) ;
178
- }
179
171
}
180
172
else if ( userProfileMap == null )
181
173
{
@@ -189,6 +181,17 @@ OptimizelyDecideOption[] options
189
181
reasons . AddInfo ( "The UserProfileService returned an invalid map." ) ) ;
190
182
}
191
183
}
184
+
185
+ if ( _userProfile != null )
186
+ {
187
+ decisionVariationResult =
188
+ GetStoredVariation ( experiment , _userProfile , config ) ;
189
+ reasons += decisionVariationResult . DecisionReasons ;
190
+ if ( decisionVariationResult . ResultObject != null )
191
+ {
192
+ return decisionVariationResult . SetReasons ( reasons ) ;
193
+ }
194
+ }
192
195
}
193
196
catch ( Exception exception )
194
197
{
0 commit comments