Open jamesmanning opened 11 years ago
The problem is that in TwoStepDeviceBuilder.AferOrderingCompleteInit the collection orderedRules is modified during enumeration. It causes an exception to be thrown which results in the devices field to never be set which results in the null ref exception in ElaborateTwoStepDeviceWithToken
This fixes it.
protected override void AfterOrderingCompleteInit(Dictionary<string, Device> devices)
{
List<string> keys = new List<string>();
foreach (string key in orderedRules.Keys)
{
keys.Add(key);
}
foreach (String step1Token in keys)
{
SortElement(step1Token);
}...
User agent strings that appear to trigger it include these (the +'s are there