Skip to content

Duplicates #22

@aristotelos

Description

@aristotelos

On initializing OpenDDR, a number of duplicate definitions will throw the following catched exceptions.

System.ArgumentException       3    An item with the same key has already been added.      System.ThrowHelper.ThrowArgumentException(System.ExceptionResource)
   System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib],[System.__Canon, mscorlib]].Insert(System.__Canon, System.__Canon, Boolean)
   System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib],[System.__Canon, mscorlib]].Add(System.__Canon, System.__Canon)
   Oddr.Documenthandlers.DeviceDatasourceParser.Parse()

System.ArgumentException       1    Item has already been added. Key in dictionary: 'HUAWEI C8812' Key being added: 'HUAWEI C8812'     System.Collections.Hashtable.Insert(System.Object, System.Object, Boolean)
   System.Collections.Specialized.OrderedDictionary.Add(System.Object, System.Object)
   Oddr.Builders.Devices.AndroidDeviceBuilder.PutDevice(System.String, System.Collections.Generic.List`1)

System.ArgumentException       1    Item has already been added. Key in dictionary: 'LG-P936' Key being added: 'LG-P936'       System.Collections.Hashtable.Insert(System.Object, System.Object, Boolean)
   System.Collections.Specialized.OrderedDictionary.Add(System.Object, System.Object)
   Oddr.Builders.Devices.AndroidDeviceBuilder.PutDevice(System.String, System.Collections.Generic.List`1)

System.ArgumentException       1    Item has already been added. Key in dictionary: 'SGH-T889' Key being added: 'SGH-T889'     System.Collections.Hashtable.Insert(System.Object, System.Object, Boolean)
   System.Collections.Specialized.OrderedDictionary.Add(System.Object, System.Object)
   Oddr.Builders.Devices.AndroidDeviceBuilder.PutDevice(System.String, System.Collections.Generic.List`1)

System.ArgumentException       1    Item has already been added. Key in dictionary: 'MB870' Key being added: 'MB870'       System.Collections.Hashtable.Insert(System.Object, System.Object, Boolean)
   System.Collections.Specialized.OrderedDictionary.Add(System.Object, System.Object)
   Oddr.Builders.Devices.AndroidDeviceBuilder.PutDevice(System.String, System.Collections.Generic.List`1)

System.ArgumentException       28       An item with the same key has already been added.      System.ThrowHelper.ThrowArgumentException(System.ExceptionResource)
   System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib],[System.__Canon, mscorlib]].Insert(System.__Canon, System.__Canon, Boolean)
   System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib],[System.__Canon, mscorlib]].Add(System.__Canon, System.__Canon)
   Oddr.Builders.Devices.TwoStepDeviceBuilder.PutDevice(System.String, System.Collections.Generic.List`1)

System.ArgumentException       1    Item has already been added. Key in dictionary: 'XT937C' Key being added: 'XT937C'     System.Collections.Hashtable.Insert(System.Object, System.Object, Boolean)
   System.Collections.Specialized.OrderedDictionary.Add(System.Object, System.Object)
   Oddr.Builders.Devices.AndroidDeviceBuilder.PutDevice(System.String, System.Collections.Generic.List`1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions