File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -428,18 +428,20 @@ public EDSsharp convert(Device dev)
428428
429429 Dictionary < string , string > keypairs = new Dictionary < string , string > ( ) ;
430430
431-
432- if ( dev . Other . Capabilities . CharacteristicsList != null )
431+ if ( dev . Other . Capabilities != null )
433432 {
434- foreach ( Characteristic c in dev . Other . Capabilities . CharacteristicsList . Characteristic )
433+ if ( dev . Other . Capabilities . CharacteristicsList != null )
435434 {
436- try
435+ foreach ( Characteristic c in dev . Other . Capabilities . CharacteristicsList . Characteristic )
437436 {
438- keypairs . Add ( c . CharacteristicName . Label . Text , c . CharacteristicContent . Label . Text ) ;
439- }
440- catch ( Exception e )
441- {
442- // Warnings.warning_list.Add("Parsing characteristics failed " + e.ToString());
437+ try
438+ {
439+ keypairs . Add ( c . CharacteristicName . Label . Text , c . CharacteristicContent . Label . Text ) ;
440+ }
441+ catch ( Exception e )
442+ {
443+ // Warnings.warning_list.Add("Parsing characteristics failed " + e.ToString());
444+ }
443445 }
444446 }
445447 }
You can’t perform that action at this time.
0 commit comments